← Back to team overview

dolfin team mailing list archive

Re: Feature request for Assembler in PyDolfin

 

2007/12/12, Garth N. Wells <gnw20@xxxxxxxxx>:
> Martin Sandve Alnæs wrote:
> > Simply duplicating the following signatures from Assembler with
> > ufc::form instead of Form in PyDolfin would be nice:
> >
> >
> >         assemble(self, Form form) -> real
> >
> >         assemble(self, Form form, SubDomain sub_domain) -> real
> >
> >         assemble(self, Form form,
> >             dolfin::MeshFunction<(dolfin::uint)> cell_domains,
> >             dolfin::MeshFunction<(dolfin::uint)> exterior_facet_domains,
> >             dolfin::MeshFunction<(dolfin::uint)> interior_facet_domains) -> real
> >
> >         assemble(self, GenericTensor A, Form form, bool reset_tensor=True)
> >
> >         assemble(self, GenericTensor A, Form form, SubDomain
> > sub_domain, bool reset_tensor=True)
> >
> >
>
> Sure. I'll add it soon.
>
> I'll also need to send a DofMap since a Form now has a DofMap.
>
> Garth

Ok, but is that really necessary? Can't the Assembler simply make a
DofMap from the ufc::dof_map, and cache it in the DofMapSet using the
dof_map::signature()?

I'll consider making SyFi generate dolfin::Form subclasses too.

--
Martin


Follow ups

References