dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #10317
Assembler interface
Now that we have removed DofMapSet, how should the general assembly
interface look? We have lots of simple assemble() functions and they
all end up calling the main function which is
void assemble(GenericTensor& A,
const ufc::form& form,
const Array<Function*>& coefficients,
const DofMapSet& dof_map_set,
const MeshFunction<uint>* cell_domains,
const MeshFunction<uint>* exterior_facet_domains,
const MeshFunction<uint>* interior_facet_domains,
bool reset_tensor = true);
One option would be
void assemble(GenericTensor& A,
const ufc::form& form,
const std::vector<std::tr1::shared_ptr<FunctionSpace> > function_spaces,
const std::vector<std::tr1::shared_ptr<Function> > coefficients,
const MeshFunction<uint>* cell_domains,
const MeshFunction<uint>* exterior_facet_domains,
const MeshFunction<uint>* interior_facet_domains,
bool reset_tensor = true);
Also, I see that we have started using std::vector in a few places
instead of Array. Should we continue to use Array or should we just
use std::vector?
--
Anders
Attachment:
signature.asc
Description: Digital signature
Follow ups