28 #include <vapor/common.h>
29 #include <vapor/MyBase.h>
30 #include <vapor/AMRTree.h>
95 const size_t cell_dim[3],
106 const size_t cell_dim[3],
140 const size_t cell_dim[3],
141 const int paramesh_gids[][15],
142 const float paramesh_bboxs [][3][2],
143 const float paramesh_unk[],
228 const size_t bmin[3],
229 const size_t bmax[3],
257 const string &path,
size_t cell_dim[3],
size_t bmin[3],
size_t bmax[3],
258 float data_range[2],
int &reflevel,
size_t &num_nodes
300 const size_t bmin[3],
301 const size_t bmax[3],
321 for (
int i=0; i<3; i++) {bmin[i] = _bmin[i]; bmax[i] = _bmax[i];}
326 static const string _numNodeToken;
327 static const string _blockSizeXToken;
328 static const string _blockSizeYToken;
329 static const string _blockSizeZToken;
330 static const string _varToken;
331 static const string _blockMinToken;
332 static const string _blockMaxToken;
333 static const string _refinementLevelToken;
334 static const string _scalarRangeToken;
339 int *_treeDataMemSize;
342 int _maxRefinementLevel;
347 const size_t cell_dim[3],
355 int paramesh_copy_data(
358 const int paramesh_gids[][15],
359 const float paramesh_unk[]
388 const float *branch_data,
401 #endif // _AMRData_h_
This class manages an octree data structure.
This class manages an Adaptive Mesh Refinement grid.
int ReGrid(const size_t bmin[3], const size_t bmax[3], int reflevel, float *grid, const size_t dim[3]) const
int ReadNCDF(const string &path, const size_t bmin[3], const size_t bmax[3], int reflevel=-1)
void GetRegion(const size_t **min, const size_t **max, int *reflevel) const
int SetRegion(const size_t min[3], const size_t max[3], int reflevel)
float * GetBlock(AMRTree::cid_t cellid) const
const float * GetDataRange() const
const AMRTree * GetTree() const
static int ReadAttributesNCDF(const string &path, size_t cell_dim[3], size_t bmin[3], size_t bmax[3], float data_range[2], int &reflevel, size_t &num_nodes)
void GetBounds(size_t bmin[3], size_t bmax[3]) const
AMRTreeBranch::cid_t cid_t
int WriteNCDF(const string &path, int reflevel=-1)
AMRData(const AMRTree *tree, const size_t cell_dim[3], const size_t bmin[3], const size_t bmax[3], int reflevel=-1)
This class manages an AMR tree data structure.