Block-Structured AMR Software Framework
AMReX_PlotFileUtilHDF5.H
Go to the documentation of this file.
1 #ifndef AMREX_PLOTFILEUTILHDF5_H_
2 #define AMREX_PLOTFILEUTILHDF5_H_
3 #include <AMReX_Config.H>
4 
5 #include <AMReX_Geometry.H>
6 #include <AMReX_MultiFab.H>
8 
9 #include <hdf5.h>
10 
11 #include <string>
12 #include <memory>
13 
14 namespace amrex
15 {
16 
17  void WriteSingleLevelPlotfileHDF5 (const std::string &plotfilename,
18  const MultiFab &mf,
19  const Vector<std::string> &varnames,
20  const Geometry &geom,
21  Real t,
22  int level_step,
23  const std::string &compression = "None@0",
24  const std::string &versionName = "HyperCLaw-V1.1",
25  const std::string &levelPrefix = "Level_",
26  const std::string &mfPrefix = "Cell",
27  const Vector<std::string>& extra_dirs = Vector<std::string>());
28 
29  void WriteMultiLevelPlotfileHDF5 (const std::string &plotfilename,
30  int nlevels,
31  const Vector<const MultiFab*> &mf,
32  const Vector<std::string> &varnames,
33  const Vector<Geometry> &geom,
34  Real time,
35  const Vector<int> &level_steps,
36  const Vector<IntVect> &ref_ratio,
37  const std::string &compression = "None@0",
38  const std::string &versionName = "HyperCLaw-V1.1",
39  const std::string &levelPrefix = "Level_",
40  const std::string &mfPrefix = "Cell",
41  const Vector<std::string>& extra_dirs = Vector<std::string>());
42 
43  void WriteSingleLevelPlotfileHDF5SingleDset (const std::string &plotfilename,
44  const MultiFab &mf,
45  const Vector<std::string> &varnames,
46  const Geometry &geom,
47  Real t,
48  int level_step,
49  const std::string &compression = "None@0",
50  const std::string &versionName = "HyperCLaw-V1.1",
51  const std::string &levelPrefix = "Level_",
52  const std::string &mfPrefix = "Cell",
53  const Vector<std::string>& extra_dirs = Vector<std::string>());
54 
55  void WriteMultiLevelPlotfileHDF5SingleDset (const std::string &plotfilename,
56  int nlevels,
57  const Vector<const MultiFab*> &mf,
58  const Vector<std::string> &varnames,
59  const Vector<Geometry> &geom,
60  Real time,
61  const Vector<int> &level_steps,
62  const Vector<IntVect> &ref_ratio,
63  const std::string &compression = "None@0",
64  const std::string &versionName = "HyperCLaw-V1.1",
65  const std::string &levelPrefix = "Level_",
66  const std::string &mfPrefix = "Cell",
67  const Vector<std::string>& extra_dirs = Vector<std::string>());
68 
69  void WriteSingleLevelPlotfileHDF5MultiDset (const std::string &plotfilename,
70  const MultiFab &mf,
71  const Vector<std::string> &varnames,
72  const Geometry &geom,
73  Real t,
74  int level_step,
75  const std::string &compression = "None@0",
76  const std::string &versionName = "HyperCLaw-V1.1",
77  const std::string &levelPrefix = "Level_",
78  const std::string &mfPrefix = "Cell",
79  const Vector<std::string>& extra_dirs = Vector<std::string>());
80 
81  void WriteMultiLevelPlotfileHDF5MultiDset (const std::string &plotfilename,
82  int nlevels,
83  const Vector<const MultiFab*> &mf,
84  const Vector<std::string> &varnames,
85  const Vector<Geometry> &geom,
86  Real time,
87  const Vector<int> &level_steps,
88  const Vector<IntVect> &ref_ratio,
89  const std::string &compression = "None@0",
90  const std::string &versionName = "HyperCLaw-V1.1",
91  const std::string &levelPrefix = "Level_",
92  const std::string &mfPrefix = "Cell",
93  const Vector<std::string>& extra_dirs = Vector<std::string>());
94 }
95 
96 #endif
Definition: AMReX_Amr.cpp:49
void WriteMultiLevelPlotfileHDF5(const std::string &plotfilename, int nlevels, const Vector< const MultiFab * > &mf, const Vector< std::string > &varnames, const Vector< Geometry > &geom, Real time, const Vector< int > &level_steps, const Vector< IntVect > &ref_ratio, const std::string &compression, const std::string &versionName, const std::string &levelPrefix, const std::string &mfPrefix, const Vector< std::string > &extra_dirs)
Definition: AMReX_PlotFileUtilHDF5.cpp:1340
void WriteMultiLevelPlotfileHDF5MultiDset(const std::string &plotfilename, int nlevels, const Vector< const MultiFab * > &mf, const Vector< std::string > &varnames, const Vector< Geometry > &geom, Real time, const Vector< int > &level_steps, const Vector< IntVect > &ref_ratio, const std::string &compression, const std::string &versionName, const std::string &levelPrefix, const std::string &mfPrefix, const Vector< std::string > &extra_dirs)
Definition: AMReX_PlotFileUtilHDF5.cpp:807
void WriteMultiLevelPlotfileHDF5SingleDset(const std::string &plotfilename, int nlevels, const Vector< const MultiFab * > &mf, const Vector< std::string > &varnames, const Vector< Geometry > &geom, Real time, const Vector< int > &level_steps, const Vector< IntVect > &ref_ratio, const std::string &compression, const std::string &versionName, const std::string &levelPrefix, const std::string &mfPrefix, const Vector< std::string > &extra_dirs)
Definition: AMReX_PlotFileUtilHDF5.cpp:334
void WriteSingleLevelPlotfileHDF5SingleDset(const std::string &plotfilename, const MultiFab &mf, const Vector< std::string > &varnames, const Geometry &geom, Real time, int level_step, const std::string &compression, const std::string &versionName, const std::string &levelPrefix, const std::string &mfPrefix, const Vector< std::string > &extra_dirs)
Definition: AMReX_PlotFileUtilHDF5.cpp:1302
void WriteSingleLevelPlotfileHDF5(const std::string &plotfilename, const MultiFab &mf, const Vector< std::string > &varnames, const Geometry &geom, Real time, int level_step, const std::string &compression, const std::string &versionName, const std::string &levelPrefix, const std::string &mfPrefix, const Vector< std::string > &extra_dirs)
Definition: AMReX_PlotFileUtilHDF5.cpp:1283
void WriteSingleLevelPlotfileHDF5MultiDset(const std::string &plotfilename, const MultiFab &mf, const Vector< std::string > &varnames, const Geometry &geom, Real time, int level_step, const std::string &compression, const std::string &versionName, const std::string &levelPrefix, const std::string &mfPrefix, const Vector< std::string > &extra_dirs)
Definition: AMReX_PlotFileUtilHDF5.cpp:1321