Block-Structured AMR Software Framework
AMReX_BLWritePlotFile.H
Go to the documentation of this file.
1 // --------------------------------------------------------------------
2 // AMReX_BLWritePlotFile.H
3 // --------------------------------------------------------------------
4 #ifndef BL_WRITEPLOTFILE_H
5 #define BL_WRITEPLOTFILE_H
6 #include <AMReX_Config.H>
7 
8 #include <AMReX_REAL.H>
9 #include <AMReX_FArrayBox.H>
11 #include <AMReX_DataServices.H>
12 #include <AMReX_MultiFab.H>
13 #include <AMReX_Utility.H>
14 
15 using amrex::Real;
16 
17 namespace amrex{
18 
19 void WritePlotfile(const std::string &pfversion,
21  const Real time,
22  const amrex::Vector<Real> &probLo,
23  const amrex::Vector<Real> &probHi,
24  const amrex::Vector<int> &refRatio,
25  const amrex::Vector<amrex::Box> &probDomain,
26  const amrex::Vector<amrex::Vector<Real> > &dxLevel,
27  const int coordSys,
28  const std::string &oFile,
29  const amrex::Vector<std::string> &names,
30  const bool verbose,
31  const bool isCartGrid = false,
32  const Real *vfeps = 0,
33  const int *levelSteps = 0);
34 
35 
36 // this function makes a 2d plotfile from a 3d one
37 // the 3d file must have width = 1 in one direction
38 // compile in 3d
39 
40 void WritePlotfile2DFrom3D(const std::string &pfversion,
42  const Real time,
43  const amrex::Vector<Real> &probLo,
44  const amrex::Vector<Real> &probHi,
45  const amrex::Vector<int> &refRatio,
46  const amrex::Vector<amrex::Box> &probDomain,
47  const amrex::Vector<amrex::Vector<Real> > &dxLevel,
48  const int coordSys,
49  const std::string &oFile,
50  const amrex::Vector<std::string> &names,
51  const bool verbose,
52  const bool isCartGrid = false,
53  const Real *vfeps = 0,
54  const int *levelSteps = 0);
55 
56 } //namespace amrex
57 #endif
58 // --------------------------------------------------------------------
59 // --------------------------------------------------------------------
Definition: AMReX_Amr.cpp:49
void WritePlotfile2DFrom3D(const std::string &pfversion, const Vector< MultiFab > &data, const Real time, const Vector< Real > &probLo, const Vector< Real > &probHi, const Vector< int > &refRatio, const Vector< Box > &probDomain, const Vector< Vector< Real > > &dxLevel, const int coordSys, const std::string &oFile, const Vector< std::string > &names, const bool verbose, const bool isCartGrid, const Real *vfeps, const int *levelSteps)
Definition: AMReX_BLWritePlotFile.cpp:325
void WritePlotfile(const std::string &pfversion, const Vector< MultiFab > &data, const Real time, const Vector< Real > &probLo, const Vector< Real > &probHi, const Vector< int > &refRatio, const Vector< Box > &probDomain, const Vector< Vector< Real > > &dxLevel, const int coordSys, const std::string &oFile, const Vector< std::string > &names, const bool verbose, const bool isCartGrid, const Real *vfeps, const int *levelSteps)
Definition: AMReX_BLWritePlotFile.cpp:17
int verbose
Definition: AMReX_DistributionMapping.cpp:36