aboutsummaryrefslogtreecommitdiff
path: root/src/AmrGrid.h
blob: cfa411f0f7c09b458bd395dfd8b0ce784c04e4e4 (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
#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