]> https://gitweb.dealii.org/ - dealii.git/commitdiff
DataOut::build_patches(): make mapping dependent on tria 11924/head
authorPeter Munch <peterrmuench@gmail.com>
Tue, 16 Mar 2021 19:20:58 +0000 (20:20 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Tue, 16 Mar 2021 19:20:58 +0000 (20:20 +0100)
source/numerics/data_out.cc

index 610e1b5060f6f54a4d22c2633392033dadbeb390..b467243d1fe5a543df67c8a382c1943d91224dfe 100644 (file)
@@ -1084,10 +1084,14 @@ template <int dim, typename DoFHandlerType>
 void
 DataOut<dim, DoFHandlerType>::build_patches(const unsigned int n_subdivisions)
 {
-  build_patches(StaticMappingQ1<DoFHandlerType::dimension,
-                                DoFHandlerType::space_dimension>::mapping,
-                n_subdivisions,
-                no_curved_cells);
+  AssertDimension(this->triangulation->get_reference_cells().size(), 1);
+
+  build_patches(
+    this->triangulation->get_reference_cells()[0]
+      .template get_default_linear_mapping<DoFHandlerType::dimension,
+                                           DoFHandlerType::space_dimension>(),
+    n_subdivisions,
+    no_curved_cells);
 }
 
 

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.