From 9cb9ec653a3461c3367483fe9075eeebcbe76678 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sun, 26 Jun 2022 16:43:45 -0400 Subject: [PATCH] use the new constructor --- source/base/data_out_base.cc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index eed58f7157..4c03f33ad8 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -7985,13 +7985,24 @@ DataOutInterface::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 -- 2.39.5