1#ifndef HDF5EXPORT_DEF_hpp
2#define HDF5EXPORT_DEF_hpp
6template<
class SC,
class LO,
class GO,
class NO>
12 Teuchos::RCP<const Teuchos::MpiComm<int> > mpiComm = Teuchos::rcp_dynamic_cast<const Teuchos::MpiComm<int> >( writeMap->getComm() );
14 hdf5exporter_.reset(
new HDF5_Type(mpiComm) );
16 hdf5exporter_->create(outputFilename+
".h5");
18 outputFilename_ = outputFilename;
21template<
class SC,
class LO,
class GO,
class NO>
24 hdf5exporter_->write(varName,writeVector);
26 if(writeVector->getMap()->getComm()->getRank() == 0 )
27 std::cout <<
" HDF5_Export:: Exporting to file " << outputFilename_ <<
" with variable name " << varName << std::endl;
29 hdf5exporter_->flush();
33template<
class SC,
class LO,
class GO,
class NO>
35 hdf5exporter_->close();
void closeExporter()
Closing Exporter.
Definition HDF5Export_def.hpp:34
HDF5Export(MapConstPtr_Type writeMap, std::string outputFilename)
Constructor for HDF5 Exporter.
Definition HDF5Export_def.hpp:7
void writeVariablesHDF5(std::string varName, const MultiVectorConstPtr_Type writeVector)
Exporting MultiVector writeVector as HDF5 File with the variable name varName.
Definition HDF5Export_def.hpp:22
Adaptive Mesh Refinement.
Definition AdaptiveMeshRefinement_decl.hpp:36