> On Sep 9, 2015, at 7:45 PM, Roy Stogner <royst...@ices.utexas.edu> wrote:
> 
> 
>> On Wed, 9 Sep 2015, John Peterson 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?
>> 
>> I'd loop over the elements and only keep the ones for which
>> 
>> elem->is_semilocal() && (elem->processor_id() != mesh.processor_id())
>> 
>> Unless I misunderstand the definition of semi-locality.
> 
> John, you imported the fancy iterator stuff, right?  Would it be hard
> to add a "ghost_elements_begin()"/"ghost_elements_end()" with a
> multi-predicate?

That would be pretty easy, yeah.  I'll take a look at it tomorrow.



------------------------------------------------------------------------------
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

Reply via email to