aboutsummaryrefslogtreecommitdiff
path: root/src/IsoSurfacerGH.h
blob: ac299e7d043a32eb74936dec203538626bb4487f (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
36
37
38
39
40
41
42
43
44
45
/*   The extensions to the GH structure from IsoSurfacer. */
#ifndef __IsoSurface_GH_h_
#define __IsoSurface_GH_h_

#include "cctk.h"

#define BIN      1
#define ASCII    2
#define UCD      4
#define VRML     8
#define SOCK     16
#define ISOHDF5  32
#define NONE     64 /* sounds kooky, but its for forcing the 
		       surfacer to run without output for
		       benchmarking purposes */

typedef struct polypatch
{
  CCTK_REAL4    *verts;
  CCTK_INT4      nverts;
  CCTK_INT4     *polys;
  CCTK_INT4      npolys;
} polypatch;

typedef struct isosurfacerGH
{
  char       *funcName; /* will be an array of names & vals later */
  CCTK_REAL   isovalue; /* must be same as GF data for efficiency */
  CCTK_REAL   minval,maxval; /* range of this grid function */
  short int   formats;
  short int   outfreq;
  short int   firstIteration;
  short int   RunIsoSurfacer;
  polypatch   perprocessor,totals; // un-collected geometry for this node
} isosurfacerGH;

// typedef isosurfacerGH isoparms_st;

typedef enum {Byte=0,Int8=0,Int16=1,Int32=2,Int64=3,
              Float32=4,Float64=5,
              uInt8=6,uChar=6,uInt16=7,uInt32=8,uInt64=9,
              Char=10,Char8=10,String=10,Unicode=11,
              Char16=11, Error=-1} IsoType;
 
#endif /* __IsoSurface_GH_h_ */