13 #ifndef _EBINTERFACE_H_ 14 #define _EBINTERFACE_H_ 18 #include "NamespaceHeader.H" 217 #define ADD_ATTRIBUTE(attrib, Ttype, ChType, Sname, value) \ 218 ADD_tmp = attrib.accessByType[ChType] ; \ 219 ADD_at = (Attribute*) malloc(sizeof(Attribute)); \ 220 attrib.accessByType[ChType] = ADD_at; \ 221 ADD_at->name = malloc(strlen(Sname)+1); \ 222 sprintf(ADD_at->name, Sname); \ 223 ADD_at->data = malloc(sizeof(Ttype)); \ 224 ADD_at->attributeType = ChType; \ 225 *((Ttype *)ADD_at->data) = value; \ 226 ADD_at->next = ADD_tmp; \ 227 attrib.numByType[ChType]++; \ 229 #define ADD_CHAR_ATTRIBUTE(attrib, Sname, value) \ 230 ADD_tmp = attrib.accessByType[CHAR] ; \ 231 ADD_at = (Attribute*) malloc(sizeof(Attribute)); \ 232 attrib.accessByType[CHAR] = ADD_at; \ 233 ADD_at->name = malloc(strlen(Sname)); \ 234 sprintf(ADD_at->name, Sname); \ 235 ADD_at->data = malloc(strlen(value)); \ 236 ADD_at->attributeType = CHAR; \ 237 sprintf((char*)ADD_at->data, value); \ 238 ADD_at->next = ADD_tmp; \ 239 attrib.numByType[CHAR]++; \ 268 #define CFINITE(X) !isnan(X) && (X) < HUGE_VAL && (X) > -HUGE_VAL 270 #include "NamespaceFooter.H" int numPnts2(const box2d *)
box2d b2
Definition: EBInterface.H:47
void * next
Definition: EBInterface.H:180
void grow2(box2d *, intvect2d *)
ChattributeType
Definition: EBInterface.H:162
int HandleCreateGroup(HDF5Handle *handle, const char *group)
void initializeHDF5datatypes()
int attributeType
Definition: EBInterface.H:179
static hid_t box2d_id
Definition: EBInterface.H:134
void refine2(box2d *, int refinement)
double volfrac
Definition: EBInterface.H:54
static hid_t box3d_id
Definition: EBInterface.H:134
void printAttributes(HDF5attributes *attributes)
Definition: EBInterface.H:164
Definition: EBInterface.H:138
struct @17 HDF5Handle
Definition: Box.H:1631
static hid_t intvect3d_id
Definition: EBInterface.H:134
int j
Definition: EBInterface.H:29
intvect3d hi
Definition: EBInterface.H:42
void grow3(box3d *, intvect3d *)
static const char * TYPE_NAMES[ChTYPES]
Definition: EBInterface.H:173
int nindex
Definition: EBInterface.H:62
int Handleopen(HDF5Handle *handle, const char *filename, hid_t accessMode)
Definition: EBInterface.H:175
Definition: EBInterface.H:33
intvect2d lo
Definition: EBInterface.H:35
Definition: EBInterface.H:139
int isEmpty(const box2d *)
ChPrecision
Definition: EBInterface.H:136
Definition: EBInterface.H:45
int HandlesetGroup(HDF5Handle *handle, const char *group)
Definition: EBInterface.H:26
void * data
Definition: EBInterface.H:177
hid_t file_ID
Definition: EBInterface.H:144
int i
Definition: EBInterface.H:22
Definition: EBInterface.H:169
ChPrecision precision
Definition: EBInterface.H:207
hid_t group_ID
Definition: EBInterface.H:145
#define ChTYPES
Definition: EBInterface.H:161
int writeBoxes(box *boxes, int length, HDF5Handle handle)
box3d b3
Definition: EBInterface.H:48
int writeEBChomboFile(const char *filename, box3d domain, int length, box3d *boxes, long *regoffset, long *irregoffset, long numreg, long numirreg, regvof *regularVofs, irregvof *irregularVofs)
char * name
Definition: EBInterface.H:178
irregface * faces
Definition: EBInterface.H:70
int Handleclose(HDF5Handle handle)
Definition: EBInterface.H:165
int dim
Definition: EBInterface.H:206
void refine3(box3d *, int refinement)
box2d * crossSection(const box3d *box, int dir, box2d *box2)
intvect3d neighbour
Definition: EBInterface.H:61
int k
Definition: EBInterface.H:30
Definition: EBInterface.H:58
Definition: EBInterface.H:168
Definition: EBInterface.H:171
Definition: EBInterface.H:39
Handle to a particular group in an HDF file.
Definition: CH_HDF5.H:267
Definition: EBInterface.H:202
Definition: EBInterface.H:65
intvect3d index
Definition: EBInterface.H:67
intvect2d hi
Definition: EBInterface.H:36
intvect3d index
Definition: EBInterface.H:53
int readHDF5attributes(HDF5attributes *attr, HDF5Handle handle)
int numfaces
Definition: EBInterface.H:69
Definition: EBInterface.H:167
void freeHDF5attributes(HDF5attributes *attributes)
Definition: EBInterface.H:51
int i
Definition: EBInterface.H:28
static hid_t intvect2d_id
Definition: EBInterface.H:134
Definition: EBInterface.H:20
int cut(const box3d *box, int dir, int index)
int dim
Definition: EBInterface.H:146
double volfrac
Definition: EBInterface.H:68
int readBoxes(box **boxes, int *length, HDF5Handle handle)
int writeHDF5attributes(HDF5attributes *attr, HDF5Handle handle)
ChPrecision precision
Definition: EBInterface.H:147
double areafrac
Definition: EBInterface.H:60
Definition: EBInterface.H:166
int numPnts3(const box3d *)
intvect3d lo
Definition: EBInterface.H:41
Definition: EBInterface.H:170
int j
Definition: EBInterface.H:23