]> https://gitweb.dealii.org/ - dealii.git/commitdiff
use the new constructor
authorTimo Heister <timo.heister@gmail.com>
Sun, 26 Jun 2022 20:43:45 +0000 (16:43 -0400)
committerTimo Heister <timo.heister@gmail.com>
Tue, 28 Jun 2022 15:27:52 +0000 (11:27 -0400)
source/base/data_out_base.cc

index eed58f7157ad17f0f86f2c3bb91c68b5e4051b5f..4c03f33ad8cef13f3a451d171b907b99b6e60670 100644 (file)
@@ -7985,13 +7985,24 @@ DataOutInterface<dim, spacedim>::create_xdmf_entry(
   // Output the XDMF file only on the root process
   if (myrank == 0)
     {
+      const auto &patches = get_patches();
+      Assert(patches.size() > 0, DataOutBase::ExcNoPatches());
+      // We currently don't support writing mixed meshes:
+#ifdef DEBUG
+      for (const auto &patch : patches)
+        Assert(patch.reference_cell == patches[0].reference_cell,
+               ExcNotImplemented());
+#endif
+
+
       XDMFEntry    entry(h5_mesh_filename,
                       h5_solution_filename,
                       cur_time,
                       global_node_cell_count[0],
                       global_node_cell_count[1],
                       dim,
-                      spacedim);
+                      spacedim,
+                      patches[0].reference_cell);
       unsigned int n_data_sets = data_filter.n_data_sets();
 
       // The vector names generated here must match those generated in the HDF5

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.