diff options
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/src/common.h b/src/common.h index 53db6d5..f4bb8a7 100644 --- a/src/common.h +++ b/src/common.h @@ -3,41 +3,6 @@ #include "cctk.h" -#define X 0 -#define Y 1 -#define Z 2 -#define V 3 - -#define NEW(n,what) ((what*)malloc((n)*sizeof(what))) -/* -#define REALLOC(object,n,what) \ - (object) = (what*)realloc((void *)(object), (n)*sizeof(what)); \ - if((object) == NULL) printf("IsoSurfacer: realloc failed!\n") - */ -#define REALLOC(object,n,what) \ - if((object) != NULL) free(object); \ - (object) = NEW(n,what); \ - if((object) == NULL) printf("IsoSurfacer: REALLOC failed!\n") - -#define ABS(x) ((x) < 0 ? (-(x)) : (x)) - -typedef CCTK_REAL4 isofl; -typedef double extfl; - -typedef int machint; - -#define BIN 1 -#define ASCII 2 -#define UCD 4 - -typedef struct -{ - isofl *verts; - CCTK_INT4 nverts; - CCTK_INT4 *polys; - CCTK_INT4 npolys; -} polypatch; - typedef struct { @@ -50,7 +15,7 @@ typedef struct CCTK_INT4 doEliminateSmallTriangles; // CCTK_INT4 timestep; timestep information is really not required here! - isofl minval; + isofl minval; // need to use cactus collective ops for this isofl maxval; } par_st; |