aboutsummaryrefslogtreecommitdiff
path: root/src/AMRPlus/AMRgridPlus.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/AMRPlus/AMRgridPlus.h')
-rw-r--r--src/AMRPlus/AMRgridPlus.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/AMRPlus/AMRgridPlus.h b/src/AMRPlus/AMRgridPlus.h
new file mode 100644
index 0000000..b8f866c
--- /dev/null
+++ b/src/AMRPlus/AMRgridPlus.h
@@ -0,0 +1,21 @@
+#ifndef __AMR_GRID_HH_
+#define __AMR_GRID_HH_
+#include "AmrGrid.h"
+#include "flexset.h"
+
+struct AMRgridPlus : public AmrGrid {
+ double time;
+ int timeref, spaceref[3], placeref[3];
+ double scalarmin,scalarmax;
+};
+
+struct idxrec{
+ int idx;
+ idxrec(int first=0){idx=first;}
+ int operator<(const idxrec &other)const {return idx<other.idx;}
+ int operator==(const idxrec &other)const {return idx==other.idx;}
+};
+
+typedef flexset<idxrec> IdxSet;
+typedef flexarray<AMRgridPlus > GridArray;
+#endif