Mercurial > fem-fenics-eugenio
diff inst/private/generate_lhs.m @ 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 | 22de20d78e27 |
children | a61fc34334ca |
line wrap: on
line diff
--- a/inst/private/generate_lhs.m Tue Jul 29 17:11:59 2014 +0200 +++ b/inst/private/generate_lhs.m Tue Jul 29 18:05:56 2014 +0200 @@ -25,6 +25,7 @@ #include <fem-fenics/coefficient.h>\n\ #include <fem-fenics/function.h>\n\ #include <fem-fenics/functionspace.h>\n\ +#include <fem-fenics/dolfin_compat.h>\n\ \n\ DEFUN_DLD (@@UFL_NAME@@_LinearForm, args, , "" b = fem_lhs_@@UFL_NAME@@ (FUNCTIONAL SPACE, COEFF)"")\n\ {\n\ @@ -82,7 +83,7 @@ = static_cast <const coefficient&> (args(i).get_rep ());\n\ \n\ std::size_t n = L.coefficient_number (cf.get_str ());\n\ - const boost::shared_ptr<const expression> & pexp = cf.get_expr ();\n\ + const SHARED_PTR <const expression> & pexp = cf.get_expr ();\n\ L.set_coefficient (n, pexp);\n\ ++nc;\n\ }\n\ @@ -93,7 +94,7 @@ = static_cast <const function&> (args(i).get_rep ());\n\ \n\ std::size_t n = L.coefficient_number (fun.get_str ());\n\ - const boost::shared_ptr<const dolfin::Function> & pfun = fun.get_pfun ();\n\ + const SHARED_PTR <const dolfin::Function> & pfun = fun.get_pfun ();\n\ L.set_coefficient (n, pfun);\n\ ++nc;\n\ }\n\