diff src/interpolate.cc @ 253:5e9b5bbdc56b

Support both DOLFIN 1.3.0 and 1.4.0 * src/dolfin_compat.h: use a macro to set the correct shared_ptr (std or boost)
author Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
date Tue, 29 Jul 2014 18:05:56 +0200
parents 958a0e0e8102
children 61830a4f9ab9
line wrap: on
line diff
--- a/src/interpolate.cc	Tue Jul 29 17:11:59 2014 +0200
+++ b/src/interpolate.cc	Tue Jul 29 18:05:56 2014 +0200
@@ -19,6 +19,7 @@
 #include "function.h"
 #include "functionspace.h"
 #include <stdexcept>
+#include "dolfin_compat.h"
 
 DEFUN_DLD (interpolate, args, nargout, "-*- texinfo -*-\n\
 @deftypefn {Function File} @var{interp} = \
@@ -77,7 +78,7 @@
 
           if (! error_state)
             {
-              boost::shared_ptr<dolfin::Function>
+              SHARED_PTR <dolfin::Function>
                 output (new dolfin::Function (u1.get_pfsp ()));
 
               if (args(0+offset).type_id () == function::static_type_id ())
@@ -132,7 +133,7 @@
 
           if (! error_state)
             {
-              boost::shared_ptr<dolfin::Function>
+              SHARED_PTR <dolfin::Function>
                 output (new dolfin::Function (u0.get_fun ()));
 
               if (args(0+offset).type_id () == function::static_type_id ())