blob: 420d4e70d4d7278b3bc94358d754c7359a79a4e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef AMR_TREE_H
#define AMR_TREE_H
#include "FlexArrayTempl.H"
#include "AMRgridPlus.h"
struct idxrec {
int idx;
int datastat;
};
typedef FlexArray<int> IntArray;
typedef FlexArray<AMRgridPlus> GridArray
typedef FlexArray<idxrec> IdxArray;
class AMRTree;
struct AMRNode{
IdxArray idxs;
AMRTree subtimes;
};
class AMRTree: protected FlexArray<AMRNode>{
void buildtree(AMRTree *t, int &idx);
public:
AMRTree(GridArray *);
~AMRTree();
private:
AMRNode timenode;
GridArray grids;
};
#endif
|