#include <AMReX_DataServices.H>
Public Types | |
enum | DSRequestType { InvalidRequestType = 0 , ExitRequest , NewRequest , DeleteRequest , FillVarOneFab , FillVarArrayOfFabs , FillVarMultiFab , WriteFabOneVar , WriteFabAllVars , DumpSlicePlaneOneVar , DumpSlicePlaneAllVars , DumpSliceBoxOneVar , DumpSliceBoxAllVars , MinMaxRequest , PointValueRequest , LineValuesRequest } |
Public Member Functions | |
DataServices (const std::string &filename, const Amrvis::FileType &filetype) | |
DataServices () | |
~DataServices () | |
void | Init (const std::string &filename, const Amrvis::FileType &filetype) |
void | InitRegionTimeRanges () |
const std::string & | GetFileName () const |
Amrvis::FileType | GetFileType () const |
bool | CanDerive (const std::string &name) const |
bool | CanDerive (const Vector< std::string > &names) const |
int | NumDeriveFunc () const |
void | ListDeriveFunc (std::ostream &os) const |
const Vector< std::string > & | PlotVarNames () const |
AmrData & | AmrDataRef () |
bool | AmrDataOk () |
void | SetWriteToLevel (const int iwtlev) |
int | GetNumberOfUsers () const |
void | IncrementNumberOfUsers () |
void | DecrementNumberOfUsers () |
Static Public Member Functions | |
static void | SetBatchMode () |
static void | Dispatch (DSRequestType requestType, DataServices *ds,...) |
static void | SetFabOutSize (int iSize) |
Private Member Functions | |
bool | FillVar (FArrayBox *destFab, const Box &destBox, int finestFillLevel, const std::string &varname, int procWithFab) |
FillVarOneFab. More... | |
bool | FillVar (MultiFab &destMultiFab, int finestFillLevel, const std::string &varname) |
FillVarMultiFab. More... | |
bool | WriteFab (const std::string &fabfilename, const Box ®ion, int lev, const std::string &varname) |
WriteFabOneVar: write a single variable to one fab. More... | |
bool | WriteFab (const std::string &fabfilename, const Box ®ion, int lev) |
WriteFabAllVars: write all vars in one fab. More... | |
bool | DumpSlice (int slicedir, int slicenum, const std::string &varname) |
DumpSlicePlaneOneVar. More... | |
bool | DumpSlice (int slicedir, int slicenum) |
DumpSlicePlaneAllVars. More... | |
bool | DumpSlice (const Box &slicebox, const std::string &varname) |
DumpSliceBoxOneVar. More... | |
bool | DumpSlice (const Box &slicebox) |
DumpSliceBoxAllVars. More... | |
bool | MinMax (const Box &onBox, const std::string &derived, int level, Real &dataMin, Real &dataMax, bool &minMaxValid) |
MinMaxRequest. More... | |
void | PointValue (int pointBoxArraySize, Box *pointBoxArray, const std::string ¤tDerived, int coarsestLevelToSearch, int finestLevelToSearch, int &intersectedLevel, Box &intersectedGrid, Real &dataPointValue, bool &bPointIsValid) |
PointValueRequest. More... | |
void | LineValues (int lineBoxArraySize, Box *lineBoxArray, int whichDir, const std::string ¤tDerived, int coarsestLevelToSearch, int finestLevelToSearch, XYPlotDataList *dataList, bool &lineIsValid) |
LineValuesRequest. More... | |
Private Attributes | |
std::string | fileName |
Amrvis::FileType | fileType |
AmrData | amrData |
bool | bAmrDataOk |
int | dsArrayIndex |
int | numberOfUsers |
int | iWriteToLevel |
Static Private Attributes | |
static Vector< DataServices * > | dsArray |
static int | dsArrayIndexCounter = 0 |
static int | dsFabOutSize = 0 |
static bool | dsBatchMode = false |
static bool | profiler = false |
amrex::DataServices::DataServices | ( | const std::string & | filename, |
const Amrvis::FileType & | filetype | ||
) |
amrex::DataServices::DataServices | ( | ) |
amrex::DataServices::~DataServices | ( | ) |
|
inline |
|
inline |
bool amrex::DataServices::CanDerive | ( | const std::string & | name | ) | const |
bool amrex::DataServices::CanDerive | ( | const Vector< std::string > & | names | ) | const |
|
inline |
|
static |
|
private |
DumpSliceBoxAllVars.
|
private |
DumpSliceBoxOneVar.
|
private |
DumpSlicePlaneOneVar.
|
private |
FillVarOneFab.
|
private |
FillVarMultiFab.
|
inline |
|
inline |
|
inline |
|
inline |
void amrex::DataServices::Init | ( | const std::string & | filename, |
const Amrvis::FileType & | filetype | ||
) |
void amrex::DataServices::InitRegionTimeRanges | ( | ) |
|
private |
LineValuesRequest.
void amrex::DataServices::ListDeriveFunc | ( | std::ostream & | os | ) | const |
|
private |
MinMaxRequest.
int amrex::DataServices::NumDeriveFunc | ( | ) | const |
|
inline |
|
private |
PointValueRequest.
|
static |
|
static |
|
inline |
|
private |
WriteFabAllVars: write all vars in one fab.
|
private |
WriteFabOneVar: write a single variable to one fab.
|
private |
|
private |
|
staticprivate |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |