Template Numerical Library version\ main:bb09b17
|
Public Member Functions | |
PVTIReader (const std::string &fileName, MPI::Comm communicator=MPI_COMM_WORLD) | |
void | detectMesh () override |
Main method responsible for reading the mesh file. | |
template<typename MeshType > | |
std::enable_if_t< isDistributedGrid< MeshType >::value > | loadMesh (MeshType &mesh) |
template<typename MeshType > | |
std::enable_if_t< ! isDistributedGrid< MeshType >::value > | loadMesh (MeshType &mesh) |
VariantVector | readCellData (const std::string &arrayName) const override |
VariantVector | readPointData (const std::string &arrayName) const override |
void | reset () override |
This method resets the reader to an empty state. | |
void | setCommunicator (const MPI::Comm &communicator) |
Public Member Functions inherited from TNL::Meshes::Readers::XMLVTK | |
XMLVTK (const std::string &fileName) | |
void | openVTKFile () |
VariantVector | readCellData (const std::string &arrayName) const override |
VariantVector | readPointData (const std::string &arrayName) const override |
void | reset () override |
This method resets the reader to an empty state. | |
Public Member Functions inherited from TNL::Meshes::Readers::MeshReader | |
MeshReader (std::string fileName) | |
void | forceGlobalIndexType (std::string globalIndexType) |
void | forceLocalIndexType (std::string localIndexType) |
void | forceRealType (std::string realType) |
VTK::EntityShape | getCellShape () const |
std::string | getGlobalIndexType () const |
std::string | getLocalIndexType () const |
int | getMeshDimension () const |
std::string | getMeshType () const |
std::string | getRealType () const |
int | getSpaceDimension () const |
template<typename MeshType > | |
std::enable_if_t< isGrid< MeshType >::value > | loadMesh (MeshType &mesh) |
Method which loads the intermediate mesh representation into a mesh object. | |
template<typename MeshType > | |
std::enable_if_t< ! isGrid< MeshType >::value > | loadMesh (MeshType &mesh) |
Method which loads the intermediate mesh representation into a mesh object. | |
void | setFileName (const std::string &fileName) |
Protected Attributes | |
VariantVector | cellTags |
MPI::Comm | communicator |
int | ghostLevels = 0 |
VTIReader | localReader |
int | minCommonVertices = 0 |
std::vector< std::string > | pieceSources |
VariantVector | pointTags |
Protected Attributes inherited from TNL::Meshes::Readers::XMLVTK | |
std::string | byteOrder |
std::string | compressor |
std::string | fileType |
std::string | headerType |
Protected Attributes inherited from TNL::Meshes::Readers::MeshReader | |
VariantVector | cellConnectivityArray |
VariantVector | cellOffsetsArray |
VTK::EntityShape | cellShape = VTK::EntityShape::Vertex |
std::string | connectivityType |
VariantVector | faceConnectivityArray |
VariantVector | faceOffsetsArray |
std::string | fileName |
std::string | forcedGlobalIndexType |
std::string | forcedLocalIndexType = "std::int16_t" |
std::string | forcedRealType |
std::vector< std::int64_t > | gridExtent |
std::vector< double > | gridOrigin |
std::vector< double > | gridSpacing |
int | meshDimension |
std::string | meshType |
std::size_t | NumberOfCells |
std::size_t | NumberOfFaces |
std::size_t | NumberOfPoints |
std::string | offsetsType |
VariantVector | pointsArray |
std::string | pointsType |
int | spaceDimension |
VariantVector | typesArray |
std::string | typesType |
Additional Inherited Members | |
Public Types inherited from TNL::Meshes::Readers::MeshReader | |
using | VariantVector |
Protected Member Functions inherited from TNL::Meshes::Readers::MeshReader | |
template<typename T > | |
void | reset_std_vectors (std::vector< T > &v) |
template<typename T , typename... Ts> | |
void | reset_std_vectors (std::vector< T > &v, std::vector< Ts > &... vs) |
void | resetBase () |
Resets the base class MeshReader to the empty state. | |
Static Protected Member Functions inherited from TNL::Meshes::Readers::XMLVTK | |
static void | throw_no_tinyxml () |
|
inlineoverridevirtual |
Main method responsible for reading the mesh file.
The implementation has to set all protected attributes of this class such that the mesh representation can be loaded into the mesh object by the loadMesh method.
Implements TNL::Meshes::Readers::MeshReader.
|
inlinenodiscardoverridevirtual |
Reimplemented from TNL::Meshes::Readers::MeshReader.
|
inlinenodiscardoverridevirtual |
Reimplemented from TNL::Meshes::Readers::MeshReader.
|
inlineoverridevirtual |
This method resets the reader to an empty state.
In particular, implementations should call the resetBase method to reset the arrays holding the intermediate mesh representation.
Reimplemented from TNL::Meshes::Readers::MeshReader.