35 #ifndef NEKTAR_LIB_UTILITIES_BASIC_UTILS_FIELDIOHDF5_H 36 #define NEKTAR_LIB_UTILITIES_BASIC_UTILS_FIELDIOHDF5_H 44 namespace LibUtilities
61 : doc(H5::File::Open(fn, H5F_ACC_RDONLY, parallelProps))
107 void SetAttr(
const std::string &key,
const std::string &val)
109 m_Group->SetAttribute(key, val);
215 bool sharedFilesystem);
231 data(in.data), order(in.order), homy(in.homy), homz(in.homz),
237 uint64_t data,
order, homy, homz, homs;
241 const std::string &outFile,
242 std::vector<FieldDefinitionsSharedPtr> &fielddefs,
243 std::vector<std::vector<NekDouble> > &fielddata,
245 const bool backup =
false);
248 const std::string &infilename,
249 std::vector<FieldDefinitionsSharedPtr> &fielddefs,
250 std::vector<std::vector<NekDouble> > &fielddata =
264 std::vector<uint64_t> &decomps,
275 std::vector<uint64_t> &decomps,
278 std::vector<NekDouble> &fielddata);
H5::GroupSharedPtr m_Group
HDF5 group for this tag.
std::shared_ptr< H5DataSource > H5DataSourceSharedPtr
static const unsigned int HOMY_CNT_IDX
A helper for FieldIOHdf5::v_Write. Describes the position of the number of homogeneous y-planes in th...
H5::FileSharedPtr doc
HDF5 document.
H5TagWriter(H5::GroupSharedPtr grp)
Default constructor.
static const unsigned int MAX_DCMPS
A helper for FieldIOHdf5::v_Write. Describes the maximum number of items in the decomposition per fie...
static const unsigned int HOMS_IDX_IDX
A helper for FieldIOHdf5::v_Write. Describes the position of the number of homogeneous strips within ...
std::shared_ptr< Comm > CommSharedPtr
Pointer to a Communicator object.
virtual const std::string & GetClassName() const
Get class name.
static const unsigned int ORDER_IDX_IDX
A helper for FieldIOHdf5::v_Write. Describes the position of the element order within the indexing se...
std::shared_ptr< DataSpace > DataSpaceSharedPtr
std::map< std::string, std::string > FieldMetaDataMap
std::shared_ptr< DataSet > DataSetSharedPtr
std::shared_ptr< PList > PListSharedPtr
static const unsigned int HASH_DCMP_IDX
The hash of the field definition information, which defines the name of the attribute containing the ...
Base class for writing hierarchical data (XML or HDF5).
std::shared_ptr< TagWriter > TagWriterSharedPtr
static DataSourceSharedPtr create(const std::string &fn, H5::PListSharedPtr parallelProps)
Static constructor for this data source.
static const unsigned int FORMAT_VERSION
Version of the Nektar++ HDF5 format, which is embedded into the main NEKTAR group as an attribute...
std::shared_ptr< DataSource > DataSourceSharedPtr
H5DataSource(const std::string &fn, H5::PListSharedPtr parallelProps)
Constructor based on filename.
std::shared_ptr< H5TagWriter > H5TagWriterSharedPtr
static const unsigned int HOMY_IDX_IDX
A helper for FieldIOHdf5::v_Write. Describes the position of the number of y-planes within the indexi...
#define LIB_UTILITIES_EXPORT
std::shared_ptr< File > FileSharedPtr
static const unsigned int MAX_IDXS
A helper for FieldIOHdf5::v_Write. Describes the maximum number of items in the indexing set...
static std::vector< std::vector< NekDouble > > NullVectorNekDoubleVector
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
const H5::FileSharedPtr Get() const
Get H5::FileSharedPtr reference to file.
OffsetHelper(const OffsetHelper &in)
static const unsigned int HOMZ_CNT_IDX
A helper for FieldIOHdf5::v_Write. Describes the position of the number of homogeneous z-planes in th...
static const unsigned int VAL_DCMP_IDX
A helper for FieldIOHdf5::v_Write and FieldIOHdf5::v_Import. Describes the position of the number of ...
static const unsigned int IDS_IDX_IDX
A helper for FieldIOHdf5::v_Write. Describes the position of the element IDs within the indexing set...
void SetAttr(const std::string &key, const std::string &val)
Set an attribute key/value pair on this tag.
static std::string className
Name of class.
static const unsigned int MAX_CNTS
A helper for FieldIOHdf5::v_Write. Describes the maximum number of items in the cnt array per field d...
static const unsigned int ELEM_CNT_IDX
A helper for FieldIOHdf5::v_Write. Describes the position of the number of elements in the cnt array...
static const unsigned int ORDER_CNT_IDX
A helper for FieldIOHdf5::v_Write. Describes the position of the number of order points in the cnt ar...
TagWriterSharedPtr AddChild(const std::string &name)
Add a child node.
static const unsigned int HOMY_DCMP_IDX
A helper for FieldIOHdf5::v_Write and FieldIOHdf5::v_Import. Describes the position of the number of ...
static const unsigned int DATA_IDX_IDX
A helper for FieldIOHdf5::v_Write. Describes the position of the data size within the indexing set...
static const unsigned int HOMS_CNT_IDX
A helper for FieldIOHdf5::v_Write. Describes the position of the number of homogeneous strips in the ...
static const unsigned int HOMZ_DCMP_IDX
A helper for FieldIOHdf5::v_Write and FieldIOHdf5::v_Import. Describes the position of the number of ...
std::shared_ptr< FieldDefinitions > FieldDefinitionsSharedPtr
static const unsigned int ELEM_DCMP_IDX
A helper for FieldIOHdf5::v_Write and FieldIOHdf5::v_Import. Describes the position of the number of ...
static const unsigned int HOMZ_IDX_IDX
A helper for FieldIOHdf5::v_Write. Describes the position of the number of z-planes within the indexi...
Class for operating on Nektar++ input/output files.
std::shared_ptr< Group > GroupSharedPtr
H5::FileSharedPtr Get()
Get H5::FileSharedPtr reference to file.
static FieldIOSharedPtr create(LibUtilities::CommSharedPtr pComm, bool sharedFilesystem)
Creates an instance of this class.
static const unsigned int HOMS_DCMP_IDX
A helper for FieldIOHdf5::v_Write and FieldIOHdf5::v_Import. Describes the position of the number of ...
static Array< OneD, int > NullInt1DArray
static const unsigned int ORDER_DCMP_IDX
A helper for FieldIOHdf5::v_Write and FieldIOHdf5::v_Import. Describes the position of the number of ...
std::shared_ptr< FieldIO > FieldIOSharedPtr
static FieldMetaDataMap NullFieldMetaDataMap
static const unsigned int VAL_CNT_IDX
A helper for FieldIOHdf5::v_Write. Describes the position of the number of data points in the cnt arr...