Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
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
20namespace amrex
21{
22
38 void WriteSingleLevelPlotfileHDF5 (const std::string &plotfilename,
39 const MultiFab &mf,
40 const Vector<std::string> &varnames,
41 const Geometry &geom,
42 Real t,
43 int level_step,
44 const std::string &compression = "None@0",
45 const std::string &versionName = "HyperCLaw-V1.1",
46 const std::string &levelPrefix = "Level_",
47 const std::string &mfPrefix = "Cell",
48 const Vector<std::string>& extra_dirs = Vector<std::string>());
49
67 void WriteMultiLevelPlotfileHDF5 (const std::string &plotfilename,
68 int nlevels,
69 const Vector<const MultiFab*> &mf,
70 const Vector<std::string> &varnames,
71 const Vector<Geometry> &geom,
72 Real time,
73 const Vector<int> &level_steps,
74 const Vector<IntVect> &ref_ratio,
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
96 void WriteSingleLevelPlotfileHDF5SingleDset (const std::string &plotfilename,
97 const MultiFab &mf,
98 const Vector<std::string> &varnames,
99 const Geometry &geom,
100 Real t,
101 int level_step,
102 const std::string &compression = "None@0",
103 const std::string &versionName = "HyperCLaw-V1.1",
104 const std::string &levelPrefix = "Level_",
105 const std::string &mfPrefix = "Cell",
106 const Vector<std::string>& extra_dirs = Vector<std::string>());
107
125 void WriteMultiLevelPlotfileHDF5SingleDset (const std::string &plotfilename,
126 int nlevels,
127 const Vector<const MultiFab*> &mf,
128 const Vector<std::string> &varnames,
129 const Vector<Geometry> &geom,
130 Real time,
131 const Vector<int> &level_steps,
132 const Vector<IntVect> &ref_ratio,
133 const std::string &compression = "None@0",
134 const std::string &versionName = "HyperCLaw-V1.1",
135 const std::string &levelPrefix = "Level_",
136 const std::string &mfPrefix = "Cell",
137 const Vector<std::string>& extra_dirs = Vector<std::string>());
138
154 void WriteSingleLevelPlotfileHDF5MultiDset (const std::string &plotfilename,
155 const MultiFab &mf,
156 const Vector<std::string> &varnames,
157 const Geometry &geom,
158 Real t,
159 int level_step,
160 const std::string &compression = "None@0",
161 const std::string &versionName = "HyperCLaw-V1.1",
162 const std::string &levelPrefix = "Level_",
163 const std::string &mfPrefix = "Cell",
164 const Vector<std::string>& extra_dirs = Vector<std::string>());
165
183 void WriteMultiLevelPlotfileHDF5MultiDset (const std::string &plotfilename,
184 int nlevels,
185 const Vector<const MultiFab*> &mf,
186 const Vector<std::string> &varnames,
187 const Vector<Geometry> &geom,
188 Real time,
189 const Vector<int> &level_steps,
190 const Vector<IntVect> &ref_ratio,
191 const std::string &compression = "None@0",
192 const std::string &versionName = "HyperCLaw-V1.1",
193 const std::string &levelPrefix = "Level_",
194 const std::string &mfPrefix = "Cell",
195 const Vector<std::string>& extra_dirs = Vector<std::string>());
196}
197
198#endif
amrex_real Real
Floating Point Type for Fields.
Definition AMReX_REAL.H:79
Definition AMReX_Amr.cpp:49
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)
Write a single-level plotfile where all state lives in one dataset.
Definition AMReX_PlotFileUtilHDF5.cpp:1314
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)
Write a single-level plotfile (one dataset per level).
Definition AMReX_PlotFileUtilHDF5.cpp:1295
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)
Write a multi-level plotfile (one dataset per level).
Definition AMReX_PlotFileUtilHDF5.cpp:1352
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)
Write a single-level plotfile with one HDF5 dataset per component.
Definition AMReX_PlotFileUtilHDF5.cpp:1333
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)
Write a multi-level plotfile with one dataset per component.
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)
Write a multi-level plotfile using a single dataset per level.
Definition AMReX_PlotFileUtilHDF5.cpp:334