Dear all,
I think we have two ways to do this.
The first one is the way Prof. Wolfgang Bangerth suggested.
The second one is to load the grid in a Triangulation in all processor,
then we set the material id before copying
parallel::distributed::Triangulation from the Triangulation.

When I run the codes in my computer, it takes  a lot of time for p4est to
load the grid.
The loading grid  step is more time consuming than solving the system of
equations with a mesh containing about 100,000 cells.

I would like to thank you very much for your help.
Best,
Kien

Vào Th 7, 24 thg 8, 2019 vào lúc 01:29 Wolfgang Bangerth <
bange...@colostate.edu> đã viết:

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

-- 
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/CAAo%2BSZfwoztYKLyFvwRJnwCUKEUf3jM7oF2Fd%2B35F2E4nBRWJw%40mail.gmail.com.

Reply via email to