]> https://gitweb.dealii.org/ - dealii.git/commitdiff
GC::create_geometric_coarsening_sequence() add assert 13551/head
authorPeter Munch <peterrmuench@gmail.com>
Sun, 20 Mar 2022 06:49:27 +0000 (07:49 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Sun, 20 Mar 2022 06:49:27 +0000 (07:49 +0100)
include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h

index eb4e0e98e7233686417f7da9731483dbc256f8d8..f6aef50550d312999de0af4c74dc7cb59d1f8124 100644 (file)
@@ -2320,6 +2320,8 @@ namespace MGTransferGlobalCoarseningTools
         coarse_grid_triangulations[l - 1] = new_tria;
       }
 
+    AssertDimension(coarse_grid_triangulations[0]->n_global_levels(), 1);
+
     return coarse_grid_triangulations;
   }
 
@@ -2430,6 +2432,8 @@ namespace MGTransferGlobalCoarseningTools
       }
 #endif
 
+    AssertDimension(coarse_grid_triangulations[0]->n_global_levels(), 1);
+
     return coarse_grid_triangulations;
   }
 

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.