36 #ifndef NEKTAR_SPATIALDOMAINS_MGHDF5_H    37 #define NEKTAR_SPATIALDOMAINS_MGHDF5_H    45 namespace SpatialDomains
    56         std::string &outfilename,
    57         bool defaultExp = 
false,
    84         const std::unordered_set<int> &readIds);
    90                           std::string datasetName);
    93         std::map<
int, std::shared_ptr<T>>      &geomMap,
    95         const std::unordered_set<int>          &readIds,
    96         std::vector<int>                       &ids,
    97         std::vector<DataType>                  &geomData);
    98     template<
class T, 
typename DataType> 
void FillGeomMap(
    99         std::map<
int, std::shared_ptr<T>> &geomMap,
   101         std::vector<int>                  &ids,
   102         std::vector<DataType>             &geomData);
   104         std::map<
int, std::shared_ptr<T>> &geomMap, 
int id,
   108         std::unordered_map<int, int> &id2row);
   118     void WriteDomain(std::vector<CompositeMap> &domain);
 std::shared_ptr< MeshGraph > MeshGraphSharedPtr
CompositeDescriptor CreateCompositeDescriptor()
LibUtilities::H5::FileSharedPtr m_file
void WriteDomain(std::vector< CompositeMap > &domain)
std::unordered_map< int, CurveSharedPtr > CurveMap
static const unsigned int FORMAT_VERSION
Version of the Nektar++ HDF5 geometry format, which is embedded into the main NEKTAR/GEOMETRY group a...
void ReadCurveMap(CurveMap &curveMap, std::string dsName, const std::unordered_set< int > &readIds)
std::map< int, CompositeSharedPtr > CompositeMap
static MeshGraphSharedPtr create()
void WriteComposites(CompositeMap &comps)
std::shared_ptr< DomainRange > DomainRangeShPtr
std::map< std::string, std::string > FieldMetaDataMap
void WriteCurveMap(CurveMap &curves, std::string dsName, MeshCurvedPts &curvedPts, int &ptOffset, int &newIdx)
std::shared_ptr< PList > PListSharedPtr
void ConstructGeomObject(std::map< int, std::shared_ptr< T >> &geomMap, int id, DataType *data, CurveSharedPtr curve)
virtual void WriteGeometry(std::string &outfilename, bool defaultExp=false, const LibUtilities::FieldMetaDataMap &metadata=LibUtilities::NullFieldMetaDataMap)
void ReadGeometryData(std::map< int, std::shared_ptr< T >> &geomMap, std::string dataSet, const std::unordered_set< int > &readIds, std::vector< int > &ids, std::vector< DataType > &geomData)
std::shared_ptr< File > FileSharedPtr
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool. 
LibUtilities::H5::PListSharedPtr m_readPL
void WriteGeometryMap(std::map< int, std::shared_ptr< T >> &geomMap, std::string datasetName)
std::map< int, std::pair< LibUtilities::ShapeType, std::vector< int > > > CompositeDescriptor
void FillGeomMap(std::map< int, std::shared_ptr< T >> &geomMap, const CurveMap &curveMap, std::vector< int > &ids, std::vector< DataType > &geomData)
void WriteCurvePoints(MeshCurvedPts &curvedPts)
virtual void ReadGeometry(DomainRangeShPtr rng, bool fillGraph)
LibUtilities::H5::GroupSharedPtr m_maps
Base class for a spectral/hp element mesh. 
std::shared_ptr< Curve > CurveSharedPtr
std::shared_ptr< Group > GroupSharedPtr
static std::string className
static FieldMetaDataMap NullFieldMetaDataMap
virtual void PartitionMesh(LibUtilities::SessionReaderSharedPtr session)
Partition the mesh. 
std::shared_ptr< SessionReader > SessionReaderSharedPtr
#define SPATIAL_DOMAINS_EXPORT
LibUtilities::H5::GroupSharedPtr m_mesh