]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Load: align dealii and p4est meshes before repartitioning.
authorMarc Fehling <mafehling.git@gmail.com>
Fri, 23 Jul 2021 23:21:46 +0000 (17:21 -0600)
committerMarc Fehling <mafehling.git@gmail.com>
Wed, 28 Jul 2021 19:52:17 +0000 (13:52 -0600)
source/distributed/tria.cc

index 333e12acc5e05e0136cfeb6c5a68a71d94f02096..e7f0271692ef504e763a61330345cfd335120c34 100644 (file)
@@ -1558,6 +1558,19 @@ namespace parallel
             }
           else
             {
+              // first, align both dealii and p4est meshes, which is a
+              // requirement of our internal cell weights algorithm
+              try
+                {
+                  copy_local_forest_to_triangulation();
+                }
+              catch (const typename Triangulation<dim>::DistortedCellList &)
+                {
+                  // the underlying triangulation should not be checking for
+                  // distorted cells
+                  Assert(false, ExcInternalError());
+                }
+
               // get cell weights for a weighted repartitioning.
               const std::vector<unsigned int> cell_weights = get_cell_weights();
 
@@ -1585,10 +1598,8 @@ namespace parallel
         }
       catch (const typename Triangulation<dim>::DistortedCellList &)
         {
-          // the underlying
-          // triangulation should not
-          // be checking for
-          // distorted cells
+          // the underlying triangulation should not be checking for distorted
+          // cells
           Assert(false, ExcInternalError());
         }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.