21 std::size_t
const size_tuple,
23 std::string
const& name,
24 std::optional<MeshLib::MeshItemType>
const attribute_center,
25 unsigned int const index,
26 unsigned int const n_files,
27 std::optional<ParentDataType>
const parent_data_type)
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),
53 size_partitioned_dim(size_partitioned_dim),
55 attribute_center(attribute_center),
57 parent_data_type(parent_data_type)
60 assert(partition_info.local_length <
61 std::numeric_limits<unsigned int>::max());
62 auto const ui_global_components =
63 static_cast<unsigned int>(partition_info.global_length);
64 auto const ui_tuple_size =
static_cast<unsigned int>(size_tuple);
66 if (ui_tuple_size == 1)
68 global_block_dims = {ui_global_components};
72 global_block_dims = {ui_global_components, ui_tuple_size};
76 "XDMF: dataset name: {:s}, offset: {:d} "
77 "global_blocks: {:d}, tuples: {:d}",
78 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!...