Re: [DOLFIN-dev] Element check in Function

2009-10-07 Thread Anders Logg
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 thin

Re: [DOLFIN-dev] Element check in Function

2009-10-07 Thread Garth N. Wells
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 dofs(new uin

Re: [DOLFIN-dev] Element check in Function

2009-10-07 Thread Anders Logg
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). > ? It is called for every coefficient on every cell during assembly. This is why I worked on the hash

[DOLFIN-dev] Element check in Function

2009-10-07 Thread Garth N. Wells
How costly is this call in Function::restrict _function_space->has_element(element, dolfin_cell) ? It is called for every coefficient on every cell during assembly. Garth ___ DOLFIN-dev mailing list DOLFIN-dev@fenics.org http://www.fenics.org/mailm