Finite Element Domain Decomposition Library
FEDDLib
Loading...
Searching...
No Matches
FEDD::HDF5Import< SC, LO, GO, NO > Class Template Reference

Public Types

typedef HDF5Toolbox< SC, LO, GO, NO > HDF5_Type
typedef Teuchos::RCP< HDF5_Type > HDF5Ptr_Type
typedef Teuchos::Comm< int > Comm_Type
typedef Teuchos::RCP< const Comm_Type > CommConstPtr_Type
typedef Map< LO, GO, NO > Map_Type
typedef Teuchos::RCP< const Map_Type > MapConstPtr_Type
typedef Teuchos::RCP< Map_Type > MapPtr_Type
typedef MultiVector< SC, LO, GO, NO > MultiVector_Type
typedef Teuchos::RCP< MultiVector_Type > MultiVectorPtr_Type

Public Member Functions

 HDF5Import (MapConstPtr_Type readMap, std::string inputFilename)
 Constructor of HDF import. Here the general setting are defined. An tpetra map build based on the read map.
MultiVectorPtr_Type readVariablesHDF5 (std::string varName)
 Reading a variable 'varName' from the inputFile with inputFilename of file type HDF5.
void closeImporter ()

Protected Attributes

HDF5Ptr_Type hdf5importer_
 HDF5 importer based on HDF5Toolbox.
CommConstPtr_Type comm_
std::string inputFilename_
 Name of input file.
MapConstPtr_Type readMap_
 Name of Map of import multivector.
MultiVectorPtr_Type u_import_Tpetra_
 Imported file in Tpetra format.

Constructor & Destructor Documentation

◆ HDF5Import()

template<class SC, class LO, class GO, class NO>
FEDD::HDF5Import< SC, LO, GO, NO >::HDF5Import ( MapConstPtr_Type readMap,
std::string inputFilename )

Constructor of HDF import. Here the general setting are defined. An tpetra map build based on the read map.

Parameters
readMapMap for reading file. Parallel distribution for the to be imported multivector.
inputFilenameName of input file

Member Function Documentation

◆ readVariablesHDF5()

template<class SC, class LO, class GO, class NO>
HDF5Import< SC, LO, GO, NO >::MultiVectorPtr_Type FEDD::HDF5Import< SC, LO, GO, NO >::readVariablesHDF5 ( std::string varName)

Reading a variable 'varName' from the inputFile with inputFilename of file type HDF5.

Parameters
varNameName of variable contained in file
Returns
Tpetra formatted multivector distributed as defined with readMap

The documentation for this class was generated from the following files: