From: Peter Munch Date: Sun, 20 Mar 2022 06:49:27 +0000 (+0100) Subject: GC::create_geometric_coarsening_sequence() add assert X-Git-Tag: v9.4.0-rc1~358^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13551%2Fhead;p=dealii.git GC::create_geometric_coarsening_sequence() add assert --- diff --git a/include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h b/include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h index eb4e0e98e7..f6aef50550 100644 --- a/include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h +++ b/include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h @@ -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; }