Loading [MathJax]/extensions/tex2jax.js
OGS
XdmfData.h
Go to the documentation of this file.
1
13#pragma once
14
15#include <optional>
16#include <string>
17#include <vector>
18
19#include "MeshLib/MeshEnums.h"
21
22class XdmfArrayType;
23
24namespace MeshLib::IO
25{
26using XdmfDimType = unsigned int;
27
28struct XdmfData final
29{
53 XdmfData(std::size_t size_partitioned_dim, std::size_t size_tuple,
54 MeshPropertyDataType mesh_property_data_type,
55 std::string const& name,
56 std::optional<MeshLib::MeshItemType> attribute_center,
57 unsigned int const index, unsigned int n_files,
58 std::optional<ParentDataType> parent_data_type);
59 // a hyperslab is defined by starts and strides see
60 // https://xdmf.org/index.php/XDMF_Model_and_Format#HyperSlab
61 std::vector<XdmfDimType> starts;
62 std::vector<XdmfDimType> strides;
63 std::vector<XdmfDimType> global_block_dims;
66 std::string name;
67 std::optional<MeshLib::MeshItemType> attribute_center;
68 unsigned int index;
69 std::optional<ParentDataType> parent_data_type;
70};
71
72} // namespace MeshLib::IO
Definition of mesh-related Enumerations.
Enum for all propertyVector data types and XDMF ParentDataTypes.
MeshPropertyDataType
unsigned int index
Definition XdmfData.h:68
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!...
Definition XdmfData.cpp:20
MeshPropertyDataType data_type
Definition XdmfData.h:64
std::optional< MeshLib::MeshItemType > attribute_center
Definition XdmfData.h:67
std::vector< XdmfDimType > strides
Definition XdmfData.h:62
std::vector< XdmfDimType > starts
Definition XdmfData.h:61
std::vector< XdmfDimType > global_block_dims
Definition XdmfData.h:63
std::size_t size_partitioned_dim
Definition XdmfData.h:65
std::string name
Definition XdmfData.h:66
std::optional< ParentDataType > parent_data_type
Definition XdmfData.h:69
unsigned int XdmfDimType
Definition writeXdmf.h:24