aboutsummaryrefslogtreecommitdiff
path: root/src/AmrGrid.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/AmrGrid.h')
-rw-r--r--src/AmrGrid.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/AmrGrid.h b/src/AmrGrid.h
new file mode 100644
index 0000000..cfa411f
--- /dev/null
+++ b/src/AmrGrid.h
@@ -0,0 +1,24 @@
+#ifndef __AMR_GRID_H_
+#define __AMR_GRID_H_
+/*
+ Definition of the AMR grid structure for C
+ Defined so that the structure will be flat.
+*/
+typedef struct AmrGrid {
+ int level;
+ int maxlevel;
+ int maxtime,timestep,persistence; /* at finest-level timestep */
+ int rank,dims[3]; /* hardcode to 3D maximum dims */
+ double delta[3],origin[3]; /* stored in file as delta and origin */
+ //
+ double minext[3],maxext[3];
+ int timerefinement,spatialrefinement[3];
+ int nbytes;
+ int dataveclen;
+ int datatype;
+ int iorigin[3];
+ int gridplacementrefinement[3];
+ void *data;
+} AmrGrid;
+
+#endif