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?

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                           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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/a32e43c2-f9f9-3fc3-986e-66ead3b05712%40colostate.edu.

Reply via email to