22 std::size_t
const size_tuple,
24 std::string
const& name,
25 std::optional<MeshLib::MeshItemType>
const attribute_center,
26 unsigned int const index,
27 unsigned int const n_files)
33 return std::vector<XdmfDimType>{0, 0};
37 return std::vector<XdmfDimType>{0};
45 return std::vector<XdmfDimType>{1, 1};
49 return std::vector<XdmfDimType>{1};
52 data_type(mesh_property_data_type),
54 attribute_center(attribute_center),
59 assert(partition_info.local_length <
60 std::numeric_limits<unsigned int>::max());
61 auto const ui_global_components =
62 static_cast<unsigned int>(partition_info.global_length);
63 auto const ui_tuple_size =
static_cast<unsigned int>(size_tuple);
65 if (ui_tuple_size == 1)
67 global_block_dims = {ui_global_components};
71 global_block_dims = {ui_global_components, ui_tuple_size};
75 "XDMF: dataset name: {:s}, offset: {:d} "
76 "global_blocks: {:d}, tuples: {:d}",
77 name, partition_info.local_offset, global_block_dims[0], ui_tuple_size);
XdmfData(std::size_t size_partitioned_dim, std::size_t size_tuple, MeshPropertyDataType mesh_property_data_type, std::string const &name, std::optional< MeshLib::MeshItemType > attribute_center, unsigned int const index, unsigned int n_files)
XdmfData contains meta data to be passed to the XdmfWriter - it does not contain the actual values!...