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

Public Types

typedef Teuchos::RCP< Epetra_Map > EpetraMapPtr_Type
 
typedef EpetraExt::HDF5 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_TypeMapConstPtr_Type
 
typedef MultiVector< SC, LO, GO, NO > MultiVector_Type
 
typedef Teuchos::RCP< MultiVector_TypeMultiVectorPtr_Type
 

Public Member Functions

 HDF5Import (MapConstPtr_Type readMap, std::string inputFilename)
 Constructor of HDF import. Here the general setting are defined. An epetra 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 EpetraExt HDF5 importer.
 
CommConstPtr_Type comm_
 
Teuchos::RCP< Epetra_MpiComm > commEpetra_
 
std::string inputFilename_
 Name of input file.
 
EpetraMapPtr_Type readMap_
 Name of Map of import multivector.
 
Epetra_MultiVector * u_import_Epetra_
 Imported MultiVector in Epetra format.
 
MultiVectorPtr_Type u_import_Tpetra_
 Imported file in Xpetra 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 epetra 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
Xpetra formatted multivector distributed as defined with readMap

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