]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Assert that we only extrude quadrilateral meshes. 16657/head
authorDavid Wells <drwells@email.unc.edu>
Fri, 16 Feb 2024 14:32:53 +0000 (09:32 -0500)
committerDavid Wells <drwells@email.unc.edu>
Fri, 16 Feb 2024 14:32:53 +0000 (09:32 -0500)
Extruding mixed or triangle meshes requires wedges: this isn't implemented yet.

source/grid/grid_generator.cc

index ad15ea7dbe73163d7f1736e0e52962887e43ea6e..0ff6e12eb97656127d235915cc4085f3497ea5b0 100644 (file)
@@ -7067,6 +7067,9 @@ namespace GridGenerator
              "The number of slices for extrusion must be at least 2."));
     Assert(std::is_sorted(slice_coordinates.begin(), slice_coordinates.end()),
            ExcMessage("Slice z-coordinates should be in ascending order"));
+    Assert(input.all_reference_cells_are_hyper_cube(),
+           ExcMessage(
+             "This function is only implemented for quadrilateral meshes."));
 
     const auto priorities = [&]() -> std::vector<types::manifold_id> {
       // if a non-empty (i.e., not the default) vector is given for

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.