Finite Element Domain Decomposition Library
FEDDLib
Loading...
Searching...
No Matches
HDF5Export_decl.hpp
1#ifndef HDF5EXPORT_DECL_hpp
2#define HDF5EXPORT_DECL_hpp
3
4#include <fstream>
5#include "feddlib/core/FEDDCore.hpp"
6#include "feddlib/core/LinearAlgebra/MultiVector.hpp"
7// Trilinos
8#include <Teuchos_Array.hpp>
9#include "HDF5Toolbox_decl.hpp"
10
11#include <hdf5.h>
12
27
28namespace FEDD {
29template <class SC = default_sc, class LO = default_lo, class GO = default_go, class NO = default_no>
31public:
32 typedef HDF5Toolbox<SC,LO,GO,NO> HDF5_Type;
33 typedef Teuchos::RCP<HDF5_Type> HDF5Ptr_Type;
34
35 typedef Teuchos::Comm<int> Comm_Type;
36 typedef Teuchos::RCP<const Comm_Type> CommConstPtr_Type;
37
38 typedef Map<LO,GO,NO> Map_Type;
39 typedef Teuchos::RCP<const Map_Type> MapConstPtr_Type;
40
41 typedef MultiVector<SC,LO,GO,NO> MultiVector_Type;
42 typedef Teuchos::RCP<MultiVector_Type> MultiVectorPtr_Type;
43 typedef Teuchos::RCP<const MultiVector_Type> MultiVectorConstPtr_Type;
44
48 HDF5Export(MapConstPtr_Type writeMap, std::string outputFilename);
49
53 void writeVariablesHDF5(std::string varName,const MultiVectorConstPtr_Type writeVector);
54
56 void closeExporter();
57
58protected:
59
60 HDF5Ptr_Type hdf5exporter_;
61 CommConstPtr_Type comm_;
62
63 // ------------------------
64 // READ
65 // ------------------------
66 std::string outputFilename_;
67 std::vector<std::string> varNamesRead_;
68
69};
70
71}
72
73#endif
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
This class contains the features we use from EpteraExt::HDF5, but we transition it to Tpetra.
Definition HDF5Toolbox_decl.hpp:28
Definition Map_decl.hpp:30
Definition MultiVector_decl.hpp:61
Adaptive Mesh Refinement.
Definition AdaptiveMeshRefinement_decl.hpp:36