changeset 29:798ff8c0041d

The method return a boost::shared_ptr instead of a dolfin::FunctionSpace
author gedeone-octave <marco.vassallo@outlook.com>
date Mon, 15 Jul 2013 17:00:16 +0200
parents 82660c13123c
children eaf8a1e8f377
files src/functionspace.h
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/functionspace.h	Mon Jul 15 16:58:52 2013 +0200
+++ b/src/functionspace.h	Mon Jul 15 17:00:16 2013 +0200
@@ -43,6 +43,9 @@
   const dolfin::FunctionSpace & get_fsp (void) const
   { return (*fsp); }
 
+  const boost::shared_ptr <const dolfin::FunctionSpace> & get_pfsp (void) const
+  { return fsp; }
+
   void set_fsp (dolfin::FunctionSpace & _fsp)
   {
     dolfin::FunctionSpace * p = new dolfin::FunctionSpace (_fsp);