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,
28 std::optional<ParentDataType>
const parent_data_type)
34 return std::vector<XdmfDimType>{0, 0};
38 return std::vector<XdmfDimType>{0};
46 return std::vector<XdmfDimType>{1, 1};
50 return std::vector<XdmfDimType>{1};
53 data_type(mesh_property_data_type),
55 attribute_center(attribute_center),
57 parent_data_type(parent_data_type)
61 assert(partition_info.local_length <
62 std::numeric_limits<unsigned int>::max());
63 auto const ui_global_components =
64 static_cast<unsigned int>(partition_info.global_length);
65 auto const ui_tuple_size =
static_cast<unsigned int>(size_tuple);
67 if (ui_tuple_size == 1)
69 global_block_dims = {ui_global_components};
73 global_block_dims = {ui_global_components, ui_tuple_size};
77 "XDMF: dataset name: {:s}, offset: {:d} "
78 "global_blocks: {:d}, tuples: {:d}",
79 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, std::optional< ParentDataType > parent_data_type)
XdmfData contains meta data to be passed to the XdmfWriter - it does not contain the actual values!...