On Wed, Sep 9, 2015 at 4:54 PM John Peterson <jwpeter...@gmail.com> wrote:
> On Wed, Sep 9, 2015 at 4:01 PM, Cody Permann <codyperm...@gmail.com> > wrote: > >> TL;DR; >> I have a need for retrieving just the ghosted elements on a given >> processor >> or to put it another way, the difference of the semi-local and local >> elements. >> >> My current plan is to pass the begin/end iterators of these two methods to >> the set_difference() algorithm. Does anyone have a different or better >> way? >> > > Hmm... ghosted elements are semi-local but not local, correct? > > Right > I'd loop over the elements and only keep the ones for which > > elem->is_semilocal() && (elem->processor_id() != mesh.processor_id()) > > I believe that this works, might be a little expensive since is_semilocal() looks at all neighbors but it's straightforward and only needs to happen when the mesh changes. > Unless I misunderstand the definition of semi-locality. > > -- > John > ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users