On 8/22/19 11:58 PM, Phạm Ngọc Kiên wrote:
> 
> I have a question for parallel::distributed::Triangulation
> When 2 cells share 1 edge, but they are living in 2 different MPI processes, 
> how can I choose only 1 cell containing the common edge from them.

Is your goal to make sure that only one of the two processors does some work 
on these edges? If that's the case, then you need a "tie breaker" -- for 
example, if the subdomain id of a locally owned cell is lower than the 
subdomain of a neighboring ghost cell, then the current processor does the 
work. If the locally owned cell's subdomain id is larger, then the neighboring 
processor is in charge of the edge.

Best
  W.

-- 
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 bange...@colostate.edu
                            www: http://www.math.colostate.edu/~bangerth/

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/a8ecb0ed-359d-fb05-c2b2-e3da8c9218be%40colostate.edu.

Reply via email to