]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix refinement flags in mpi/prepare_coarsening_and_refinement_03(). 11905/head
authorMarc Fehling <marc.fehling@gmx.net>
Sun, 14 Mar 2021 03:46:10 +0000 (20:46 -0700)
committerMarc Fehling <marc.fehling@gmx.net>
Sun, 14 Mar 2021 03:46:38 +0000 (20:46 -0700)
tests/mpi/prepare_coarsening_and_refinement_03.cc

index 1c84fa5f89f21572ab0019bda0646fcd5aa146f4..0ab5d6f59f6963e93bf7e7228537c21807067552 100644 (file)
@@ -80,10 +80,9 @@ test(parallel::TriangulationBase<dim> &tria,
   for (unsigned int i = 0; i < n_refinements; ++i)
     {
       for (const auto &cell : tria.active_cell_iterators())
-        if (cell->is_locally_owned())
-          for (unsigned int v = 0; v < cell->n_vertices(); ++v)
-            if (cell->vertex(v)[0] == 0.)
-              cell->set_refine_flag();
+        for (unsigned int v = 0; v < cell->n_vertices(); ++v)
+          if (cell->vertex(v)[0] == 0.)
+            cell->set_refine_flag();
 
       tria.execute_coarsening_and_refinement();
     }

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.