> Wouldn't the above loop over a _lot_ (like millions in some cases) of
> unnecessary nodes when using Serial mesh?

Well, the exact same thing happens when you loop over active_local_elements.
For the case of a serial mesh (or any mesh for that matter) you are *really*
iterating over all the elements stored on the processor, regardless of
ownership.  It is just that operator()++ does not return until your
predicate is met.

So looping over active local elements, and then local nodes should be about
the same cost as two trips to active local elements.

-Ben




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libmesh-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to