35#ifndef NEKTAR_SPATIALDOMAINS_MGIO_H
36#define NEKTAR_SPATIALDOMAINS_MGIO_H
57 bool fillGraph =
true,
66 const std::string &outfilename,
bool defaultExp =
false,
100 const std::string &outfilename,
bool defaultExp =
false,
#define SPATIAL_DOMAINS_EXPORT
Provides a generic Factory class.
BndRegionOrdering m_bndRegOrder
LibUtilities::SessionReaderSharedPtr m_session
void ReadGeometry(LibUtilities::DomainRangeShPtr rng, bool fillGraph)
static MeshGraphSharedPtr Read(const LibUtilities::SessionReaderSharedPtr pSession, LibUtilities::DomainRangeShPtr rng=LibUtilities::NullDomainRangeShPtr, bool fillGraph=true, SpatialDomains::MeshGraphSharedPtr partitionedGraph=nullptr)
std::string GetCompositeString(CompositeSharedPtr comp)
Returns a string representation of a composite.
CompositeDescriptor CreateCompositeDescriptor()
virtual void v_PartitionMesh(LibUtilities::SessionReaderSharedPtr session)=0
MeshGraphSharedPtr m_meshGraph
virtual void v_ReadGeometry(LibUtilities::DomainRangeShPtr rng, bool fillGraph)=0
virtual ~MeshGraphIO()=default
void PartitionMesh(LibUtilities::SessionReaderSharedPtr session)
CompositeOrdering m_compOrder
void WriteGeometry(const std::string &outfilename, bool defaultExp=false, const LibUtilities::FieldMetaDataMap &metadata=LibUtilities::NullFieldMetaDataMap)
virtual void v_WriteGeometry(const std::string &outfilename, bool defaultExp=false, const LibUtilities::FieldMetaDataMap &metadata=LibUtilities::NullFieldMetaDataMap)=0
void SetMeshGraph(MeshGraphSharedPtr &meshGraph)
std::map< int, MeshEntity > CreateMeshEntities()
Create mesh entities for this graph.
std::map< std::string, std::string > FieldMetaDataMap
std::shared_ptr< SessionReader > SessionReaderSharedPtr
static FieldMetaDataMap NullFieldMetaDataMap
std::shared_ptr< DomainRange > DomainRangeShPtr
static DomainRangeShPtr NullDomainRangeShPtr
std::map< int, std::vector< unsigned int > > CompositeOrdering
std::shared_ptr< MeshGraphIO > MeshGraphIOSharedPtr
std::map< int, std::pair< LibUtilities::ShapeType, std::vector< int > > > CompositeDescriptor
std::map< int, std::vector< unsigned int > > BndRegionOrdering
std::shared_ptr< Composite > CompositeSharedPtr
LibUtilities::NekFactory< std::string, MeshGraphIO > MeshGraphIOFactory
MeshGraphIOFactory & GetMeshGraphIOFactory()
std::shared_ptr< MeshGraph > MeshGraphSharedPtr