On Tue, 1 Sep 2015, Dafang Wang wrote:

> My current solution is to iterate over all the local elements on each 
> processor in order
> to find the i-th element. This is cumbersome.

And inefficient.

> I am asking if libmesh provides a function for such needs.

Yes, that's what query_elem(i) is for.  You can then check
processor_id() on the result.  Just be careful: on ParallelMesh,
query_elem can return NULL if you're asking for a remote element.
---
Roy

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