On 2/7/21 7:28 AM, Ce Qin wrote:
>
> According to your suggestion, I wrote a simple program to copy a serial
> Triangulation to a p::d::Triangulation by looping over all levels and
> refine cells which have children,
Ah, that's actually really elegant. Very nicely done!
> but the number of global active cells in
> the resulting p::d::Triangulation does not equal to that in the serial
> Triangulation.
>
> It seems that we will get different triangulations using the same
> refinement procedure. Please check the attached files for more details.
Is your concern that
DEAL:0::n_cells on level 0 : 8
DEAL:0::n_cells on level 1 : 64
DEAL:0::n_cells on level 2 : 96
DEAL:0::n_cells on level 3 : 344
DEAL:0::n_cells on level 4 : 1648
DEAL:0::n_cells on level 5 : 9344
DEAL:0::n_global_active_cells:34903 ---- this number
DEAL:0::n_cells on level 0 : 8
DEAL:0::n_cells on level 1 : 64
DEAL:0::n_cells on level 2 : 216
DEAL:0::n_cells on level 3 : 1000
DEAL:0::n_cells on level 4 : 5824
DEAL:0::n_cells on level 5 : 32768
DEAL:0::n_global_active_cells:34896 ---- and this number
...are not the same? Have you tried to investigate why that is so, for example
by visualizing the two meshes?