dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #16046
Re: Element check in Function
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 thing yesterday. It does two
comparisons, first comparing two uint then to pointers. The hash is
now an uint so it should be fast.
We could also make this function inline.
--
Anders
Attachment:
signature.asc
Description: Digital signature
Follow ups
References