]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add assert for unsupported p::d::T in the simplex grid generators 11502/head
authorMagdalena Schreter <magdalena.schreter@uibk.ac.at>
Mon, 11 Jan 2021 11:01:33 +0000 (12:01 +0100)
committerMagdalena Schreter <magdalena.schreter@uibk.ac.at>
Mon, 11 Jan 2021 14:54:34 +0000 (15:54 +0100)
assert is moved to distributed/tria.cc

source/distributed/tria.cc

index 383bab745a1be95798b8940faf760b484e584323..e22387cbe170ccf9c5820521e5bf1b3e79dcc860 100644 (file)
@@ -2179,6 +2179,12 @@ namespace parallel
           Assert(false, ExcInternalError());
         }
 
+      Assert(
+        this->all_reference_cell_types_are_hyper_cube(),
+        ExcMessage(
+          "The class parallel::distributed::Triangulation only supports meshes "
+          "consisting only of hypercube-like cells."));
+
       // note that now we have some content in the p4est objects and call the
       // functions that do the actual work (which are dimension dependent, so
       // separate)

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.