On 23/03/11 17:06, Johan Hake wrote: > On Wednesday March 23 2011 09:58:34 Anders Logg wrote: >> On Wed, Mar 23, 2011 at 09:53:04AM -0700, Johan Hake wrote: >>> On Wednesday March 23 2011 09:45:13 Anders Logg wrote: >>>> I think (1) even if the copying is not costly. So it needs to be >>>> changed in ErrorControl. >>> >>> On Wednesday March 23 2011 09:46:59 Garth N. Wells wrote: >>>> We should go with (2). >> >> Why (2)? >> >> We use references (or pointers) for all arguments that are not >> primitive types (int, double, (shared) pointers). But as I said, >> there's little to gain in efficiency here by using a reference so if >> there are good reasons (like easier to implement the typemap) we can >> do (1). > > Do big deal for the typemap. I have now implemented Garth view, and it looks > like it is working. Should I remove: > > Form(const ufc::form& ufc_form, > const std::vector<const FunctionSpace*>& function_spaces, > const std::vector<const GenericFunction*>& coefficients); > > ? >
Yes. We should check for other constructors like this that can be removed. I removed a few pointer interfaces recently (now that the Python interface supports the shared_ptr versions). Garth > Johan > >> -- >> Anders >> >> _______________________________________________ >> Mailing list: https://launchpad.net/~dolfin >> Post to : [email protected] >> Unsubscribe : https://launchpad.net/~dolfin >> More help : https://help.launchpad.net/ListHelp > > _______________________________________________ > Mailing list: https://launchpad.net/~dolfin > Post to : [email protected] > Unsubscribe : https://launchpad.net/~dolfin > More help : https://help.launchpad.net/ListHelp _______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : [email protected] Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp

