On Sat, 29 Nov 2008, John Peterson wrote:

> On Sat, Nov 29, 2008 at 1:42 PM, Roy Stogner <[EMAIL PROTECTED]> wrote:
>
>> That'd do it.  Didn't David or someone do this once too?  It's an easy
>> mistake to make.  We ought to add a warning message somehow... maybe
>> when an FE object is reinit'ed using a grandparent or higher element?
>
> I've wondered about what we could do about this problem as well.  At
> the time of instantiation of a regular element iterator, in debug
> mode, we might be able to check the mesh for the presence of ancestor
> elements, and warn that you may be iterating over an improper subset
> of elements.

That would probably go too far - I think there's a lot of legit
library level code that needs to iterate over all elements.

My first thought was to warn on reinit() or dof_indices() of
non-active elements, but that might get falsely triggered by
library projection code.  I think grandfather elements would be safe,
but that wouldn't issue a warning until after a second level of
refinement was done.
---
Roy

-------------------------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to