27 #include <vapor/MyBase.h>
28 #include <vapor/AMRTree.h>
29 #include <vapor/AMRData.h>
30 #include <vapor/VDFIOBase.h>
76 const string &metafile
161 int TreeWrite(
const AMRTree *tree);
185 int OpenVariableWrite(
193 const float *region,
const size_t bmin[3],
const size_t bmax[3],
195 ) { SetErrMsg(
"Not implemented");
return(-1); }
198 const float *region,
const size_t min[3],
const size_t max[3]
199 ) { SetErrMsg(
"Not implemented");
return(-1); }
203 ) { SetErrMsg(
"Not implemented");
return(-1); }
206 { SetErrMsg(
"Not implemented");
return(-1); }
233 int OpenVariableRead(
241 const size_t bmin[3],
const size_t bmax[3],
float *region,
bool unblock=
true
242 ) { SetErrMsg(
"Not implemented");
return(-1); }
245 const size_t min[3],
const size_t max[3],
float *region
246 ) { SetErrMsg(
"Not implemented");
return(-1); }
250 ) { SetErrMsg(
"Not implemented");
return(-1); }
253 SetErrMsg(
"Not implemented");
return(-1);
260 virtual int CloseVariable();
272 int VariableRead(
AMRData *data);
281 int VariableWrite(
AMRData *data);
300 int GetBlockMins(
const float **mins,
int reflevel)
const;
304 int GetBlockMaxs(
const float **maxs,
int reflevel)
const;
309 size_t min[3],
size_t max[3],
int reflevel
316 static const int MAX_LEVELS = 32;
321 string _treeFileName;
322 string _dataFileName;
329 size_t _validRegMin[3];
330 size_t _validRegMax[3];
334 int mkpath(
size_t timestep,
string *path)
const;
335 int mkpath(
size_t timestep,
const char *varname,
string *path)
const;
341 #endif // _WavletBlock3d_h_
virtual int BlockWriteRegion(const float *region, const size_t bmin[3], const size_t bmax[3], bool block=true)
This class manages an Adaptive Mesh Refinement grid.
const float * GetDataRange() const
virtual int ReadRegion(const size_t min[3], const size_t max[3], float *region)
virtual int WriteRegion(const float *region)
Performs data IO to VDF files.
virtual int BlockReadRegion(const size_t bmin[3], const size_t bmax[3], float *region, bool unblock=true)
virtual int WriteSlice(const float *slice)
virtual int WriteRegion(const float *region, const size_t min[3], const size_t max[3])
Abstract base class for performing data IO to a VDC.
virtual int ReadRegion(float *region)
This class manages an AMR tree data structure.
virtual int ReadSlice(float *slice)