From: Timo Heister Date: Sun, 26 Jun 2022 20:43:45 +0000 (-0400) Subject: use the new constructor X-Git-Tag: v9.5.0-rc1~1112^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cb9ec653a3461c3367483fe9075eeebcbe76678;p=dealii.git use the new constructor --- 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