Re: [Libmesh-devel] Local Dof Indices

2008-11-06 Thread Roy Stogner
Derek Gaston wrote: > Wouldn't the above loop over a _lot_ (like millions in some cases) of > unnecessary nodes when using Serial mesh? At the moment, I think so, but that just makes it a wash efficiency-wise right now, and it wouldn't be hard to adjust our iterators to be more efficient on a

Re: [Libmesh-devel] Local Dof Indices

2008-11-06 Thread Benjamin Kirk
> 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 eleme

Re: [Libmesh-devel] Local Dof Indices

2008-11-06 Thread Derek Gaston
On Nov 6, 2008, at 8:57 AM, Kirk, Benjamin (JSC-EG) wrote: Right... The fastest thing to do may be to loop over all local elements, and only look at their internal degreees of freedom, which are guaranteed to be owned by the processor. Then you can loop over all local nodes. Should be fas

Re: [Libmesh-devel] Local Dof Indices

2008-11-06 Thread Kirk, Benjamin (JSC-EG)
x27;s nodes with-embedded-if-test... -Ben -Original Message- From: Derek Gaston [mailto:[EMAIL PROTECTED] Sent: Thu 11/6/2008 9:49 AM To: Roy Stogner Cc: libmesh-devel@lists.sourceforge.net Subject: Re: [Libmesh-devel] Local Dof Indices aha - thanks Roy... that's what I needed. Der

Re: [Libmesh-devel] Local Dof Indices

2008-11-06 Thread Derek Gaston
aha - thanks Roy... that's what I needed. Derek On Nov 6, 2008, at 8:49 AM, Roy Stogner wrote: > > > On Thu, 6 Nov 2008, Derek Gaston wrote: > >> So... I'm putting together a capability for finding the local dof >> indices for a variable and I've got a question about who owns >> what. >> >

Re: [Libmesh-devel] Local Dof Indices

2008-11-06 Thread Roy Stogner
On Thu, 6 Nov 2008, Derek Gaston wrote: > So... I'm putting together a capability for finding the local dof > indices for a variable and I've got a question about who owns what. > > If a processor owns an element does it own all of the degrees of > freedom on that element? It owns any D

[Libmesh-devel] Local Dof Indices

2008-11-06 Thread Derek Gaston
So... I'm putting together a capability for finding the local dof indices for a variable and I've got a question about who owns what. If a processor owns an element does it own all of the degrees of freedom on that element? I guess I'm having trouble figuring out how to get a unique s