On Wed, Oct 07, 2009 at 10:33:31AM +0100, Garth N. Wells wrote:
>
>
> Anders Logg wrote:
> > On Wed, Oct 07, 2009 at 10:25:49AM +0100, Garth N. Wells wrote:
> >> How costly is this call in Function::restrict
> >>
> >>     _function_space->has_element(element, dolfin_cell)
> >
> > Very cheap (I think).
> >
>
> I expect that this one isn't:
>
>    boost::scoped_array<uint>
>      dofs(new uint[dofmap.local_dimension(ufc_cell)]);
>
> Garth

Probably not. I've fixed this now so we use local_scratch.dofs.

--
Anders

Attachment: signature.asc
Description: Digital signature

_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@fenics.org
http://www.fenics.org/mailman/listinfo/dolfin-dev

Reply via email to