On Fri, Mar 27, 2009 at 8:22 AM, Roy Stogner <[email protected]> wrote:
>
> On Fri, 27 Mar 2009, Kirk, Benjamin (JSC-EG311) wrote:
>
>> What do you think about adding some bitfields (or bitsets) to Elem
>> to track things like has_affine_map, on_processor_boundary,
>> on_material_interface, etc...?
>>
>> The has_affine_map seems like a big payoff to avoid repeating the
>> flops to determine it...

I'd say we might want to profile that before we make too big a deal
out of calling it a lot.  For Quad4's it's two point subtractions and
one equality test, for Hex8's it's at most 6 point subtractions and 4
equality tests, some of which may short-circuit if the element is not
affine.

Isn't there a saying about premature optimization being the root of
all something-something?  ;-)  After 5 years I guess it's not
premature but caching things is always a tricky proposition, kinda
like having static member variables and then forgetting you did and
all of a sudden someone instantiates multiple Meshes and wonders why
their code breaks.

-- 
John

------------------------------------------------------------------------------
_______________________________________________
Libmesh-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to