4 #ifndef AMREX_AMRDATA_H_
5 #define AMREX_AMRDATA_H_
6 #include <AMReX_Config.H>
70 return visMF[level][0]->boxArray();
76 return dataGrids[0][0]->DistributionMap();
78 return dataGrids[level][0]->DistributionMap();
120 int finestFillLevel,
const std::string &varName,
int procWithFabs);
122 int finestFillLevel,
const std::string &varName,
int procWithFabs);
126 const std::string &varname,
int destcomp = 0);
142 bool CanDerive(
const std::string &name)
const;
146 int StateNumber(
const std::string &statename)
const;
166 bool MinMax(
const Box &onBox,
const std::string &derived,
int level,
167 Real &dataMin, Real &dataMax);
184 const Box &subbox,
int lrat);
186 bool DefineFab(
int level,
int componentIndex,
int fabIndex);
Array4< Real > fine
Definition: AMReX_InterpFaceRegister.cpp:90
Array4< Real const > crse
Definition: AMReX_InterpFaceRegister.cpp:92
Definition: AMReX_AmrData.H:19
int CoordSys() const
Definition: AMReX_AmrData.H:114
static int sBoundaryWidth
Definition: AMReX_AmrData.H:179
Vector< Real > probSize
Definition: AMReX_AmrData.H:35
const Vector< Vector< Vector< Real > > > & GridLocHi() const
Definition: AMReX_AmrData.H:107
void LoNodeLoc(int lev, IntVect ix, Vector< Real > &pos) const
Definition: AMReX_AmrData.cpp:976
bool ReadNonPlotfileData(const std::string &filename, Amrvis::FileType filetype)
Definition: AMReX_AmrData.cpp:741
int NumDeriveFunc() const
Definition: AMReX_AmrData.cpp:1516
void ListDeriveFunc(std::ostream &os) const
Definition: AMReX_AmrData.cpp:1553
Vector< Real > afEps
Definition: AMReX_AmrData.H:38
static bool verbose
Definition: AMReX_AmrData.H:177
int FinestLevel() const
Definition: AMReX_AmrData.H:62
const Vector< Real > & ProbLo() const
Definition: AMReX_AmrData.H:86
Vector< Real > probLo
Definition: AMReX_AmrData.H:35
const Vector< Vector< Vector< Real > > > & GridLocLo() const
Definition: AMReX_AmrData.H:106
Vector< int > compIndexToVisMFComponentMap
Definition: AMReX_AmrData.H:27
Vector< Vector< Vector< Real > > > gridLocLo
Definition: AMReX_AmrData.H:32
void SetFileType(Amrvis::FileType type)
Vector< Vector< FArrayBox * > > regions
Definition: AMReX_AmrData.H:43
bool CartGrid() const
Definition: AMReX_AmrData.H:132
Real VfEps(int level) const
Definition: AMReX_AmrData.H:136
const Vector< Box > & ProbDomain() const
Definition: AMReX_AmrData.H:83
Real Time() const
Definition: AMReX_AmrData.H:115
const Vector< Real > & ProbHi() const
Definition: AMReX_AmrData.H:87
static void SetStaticBoundaryWidth(int bw)
Definition: AMReX_AmrData.H:172
FArrayBox * ReadGrid(std::istream &is, int numVar)
Definition: AMReX_AmrData.cpp:1922
Amrvis::FileType fileType
Definition: AMReX_AmrData.H:47
int BoundaryWidth() const
Definition: AMReX_AmrData.H:112
Amrvis::FileType GetFileType() const
Definition: AMReX_AmrData.H:131
Vector< Vector< VisMF * > > visMF
Definition: AMReX_AmrData.H:25
std::string plotFileVersion
Definition: AMReX_AmrData.H:45
int nRegions
Definition: AMReX_AmrData.H:40
int finestLevel
Definition: AMReX_AmrData.H:29
Vector< Real > CellSize(int iLevel) const
Definition: AMReX_AmrData.H:98
std::string fileName
Definition: AMReX_AmrData.H:175
const Vector< Vector< Real > > & DxLevel() const
Definition: AMReX_AmrData.H:108
int coordSys
Definition: AMReX_AmrData.H:42
int NIntersectingGrids(int level, const Box &b) const
Definition: AMReX_AmrData.cpp:1561
MultiFab & GetGrids(int level, int componentIndex)
Definition: AMReX_AmrData.cpp:1627
const Vector< int > & RefRatio() const
Definition: AMReX_AmrData.H:63
Vector< Vector< Vector< Real > > > gridLocHi
Definition: AMReX_AmrData.H:32
Vector< Box > probDomain
Definition: AMReX_AmrData.H:33
void PcInterp(FArrayBox &fine, const FArrayBox &crse, const Box &subbox, int lrat)
Definition: AMReX_AmrData.cpp:1898
static Amrvis::FileType defaultFileType
Definition: AMReX_AmrData.H:176
bool Terrain() const
Definition: AMReX_AmrData.H:138
Vector< Box > maxDomain
Definition: AMReX_AmrData.H:34
Vector< Vector< MultiFab * > > dataGrids
Definition: AMReX_AmrData.H:23
AmrData()
Definition: AMReX_AmrData.cpp:44
int StateNumber(const std::string &statename) const
Definition: AMReX_AmrData.cpp:1883
static void SetVerbose(bool tf)
Definition: AMReX_AmrData.H:169
int NGrow() const
Definition: AMReX_AmrData.H:113
int vCartGrid
Definition: AMReX_AmrData.H:49
int FinestIntersectingLevel(const Box &b, int startLevel) const
Definition: AMReX_AmrData.cpp:1602
bool GetShowBody() const
Definition: AMReX_AmrData.H:133
Vector< int > levelSteps
Definition: AMReX_AmrData.H:51
void FillVar(FArrayBox *destFab, const Box &destBox, int finestFillLevel, const std::string &varName, int procWithFabs)
Definition: AMReX_AmrData.cpp:1022
const DistributionMapping & DistributionMap(int level) const
Definition: AMReX_AmrData.H:74
void HiNodeLoc(int lev, IntVect ix, Vector< Real > &pos) const
Definition: AMReX_AmrData.cpp:985
Vector< Real > vfEps
Definition: AMReX_AmrData.H:38
const BoxArray & boxArray(int level) const
Definition: AMReX_AmrData.H:64
int nComp
Definition: AMReX_AmrData.H:39
~AmrData()
Definition: AMReX_AmrData.cpp:55
void FlushGrids()
Definition: AMReX_AmrData.cpp:1669
Vector< int > refRatio
Definition: AMReX_AmrData.H:30
int nGrow
Definition: AMReX_AmrData.H:39
const Vector< std::string > & PlotVarNames() const
Definition: AMReX_AmrData.H:60
const std::string & GetFileName() const
Definition: AMReX_AmrData.H:128
void CellLoc(int lev, IntVect ix, Vector< Real > &pos) const
Definition: AMReX_AmrData.cpp:967
void SetVfEps(Real *newvfeps, int finestlev)
bool bCartGrid
Definition: AMReX_AmrData.H:48
void IntVectFromLocation(const int finestFillLevel, const Vector< Real > &location, IntVect &ivLoc, int &ivLevel, IntVect &ivFinestFillLev) const
Definition: AMReX_AmrData.cpp:994
Vector< std::string > plotVars
Definition: AMReX_AmrData.H:37
int CartGridVersion() const
Definition: AMReX_AmrData.H:135
int FinestContainingLevel(const Box &b, int startLevel) const
Definition: AMReX_AmrData.cpp:1581
Vector< Real > probHi
Definition: AMReX_AmrData.H:35
void SetShowBody(bool tf)
Definition: AMReX_AmrData.H:134
bool bShowBody
Definition: AMReX_AmrData.H:48
void SetBoundaryWidth(int width)
Definition: AMReX_AmrData.H:140
bool DefineFab(int level, int componentIndex, int fabIndex)
Definition: AMReX_AmrData.cpp:1654
Vector< Vector< Real > > dxLevel
Definition: AMReX_AmrData.H:31
int NComp() const
Definition: AMReX_AmrData.H:111
Vector< int > compIndexToVisMFMap
Definition: AMReX_AmrData.H:26
static void SetSkipPltLines(int spl)
Definition: AMReX_AmrData.H:171
bool ReadData(const std::string &filename, Amrvis::FileType filetype)
Definition: AMReX_AmrData.cpp:91
const Vector< int > & LevelSteps() const
Definition: AMReX_AmrData.H:109
static int skipPltLines
Definition: AMReX_AmrData.H:178
const Vector< Real > & ProbSize() const
Definition: AMReX_AmrData.H:85
bool MinMax(const Box &onBox, const std::string &derived, int level, Real &dataMin, Real &dataMax)
Definition: AMReX_AmrData.cpp:1702
Real time
Definition: AMReX_AmrData.H:36
Vector< Vector< std::vector< bool > > > dataGridsDefined
Definition: AMReX_AmrData.H:24
bool CanDerive(const std::string &name) const
Definition: AMReX_AmrData.cpp:1525
static bool Verbose()
Definition: AMReX_AmrData.H:170
bool bTerrain
Definition: AMReX_AmrData.H:50
void FillInterior(FArrayBox &dest, int level, const Box &subbox)
Definition: AMReX_AmrData.cpp:1510
BoxArray fabBoxArray
Definition: AMReX_AmrData.H:44
int boundaryWidth
Definition: AMReX_AmrData.H:41
const std::string & PlotFileVersion() const
Definition: AMReX_AmrData.H:116
A collection of Boxes stored in an Array.
Definition: AMReX_BoxArray.H:549
Calculates the distribution of FABs to MPI processes.
Definition: AMReX_DistributionMapping.H:41
A Fortran Array of REALs.
Definition: AMReX_FArrayBox.H:229
A collection (stored as an array) of FArrayBox objects.
Definition: AMReX_MultiFab.H:38
This class is a thin wrapper around std::vector. Unlike vector, Vector::operator[] provides bound che...
Definition: AMReX_Vector.H:27
FileType
Definition: AMReX_AmrvisConstants.H:86
@ MULTIFAB
Definition: AMReX_AmrvisConstants.H:86
@ FAB
Definition: AMReX_AmrvisConstants.H:86
constexpr int ix
Definition: AMReX_Interp_2D_C.H:32
Definition: AMReX_Amr.cpp:49