Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

EBInterface.H File Reference

#include <hdf5.h>
#include <math.h>

Include dependency graph for EBInterface.H:

Include dependency graph

Go to the source code of this file.

Compounds

struct  Attribute
union  box
struct  box3d
struct  HDF5attributes
struct  irregface
struct  irregvof
struct  regvof

Defines

#define ChTYPES   8
#define ADD_ATTRIBUTE(attrib, Ttype, ChType, Sname, value)
#define ADD_CHAR_ATTRIBUTE(attrib,Sname, value)
#define CFINITE(X)   !isnan(X) && (X) < HUGE_VAL && (X) > -HUGE_VAL

Enumerations

enum  ChPrecision { Float, Double }
enum  {
  INTEGER, FLOAT, DOUBLE, CHAR,
  INTVECT2D, INTVECT3D, BOX2D, BOX3D
}

Functions

void initializeHDF5datatypes ()
int writeEBChomboFile (const char *filename, box3d domain, int length, box3d *boxes, long *regoffset, long *irregoffset, long numreg, long numirreg, regvof *regularVofs, irregvof *irregularVofs)
int isEmpty (const box2d *)
int numPnts2 (const box2d *)
int numPnts3 (const box3d *)
void grow2 (box2d *, intvect2d *)
void grow3 (box3d *, intvect3d *)
void refine2 (box2d *, int refinement)
void refine3 (box3d *, int refinement)
int cut (const box3d *box, int dir, int index)
box2dcrossSection (const box3d *box, int dir, box2d *box2)
int Handleopen (HDF5Handle *handle, const char *filename, hid_t accessMode)
int HandlesetGroup (HDF5Handle *handle, const char *group)
int Handleclose (HDF5Handle handle)
int HandleCreateGroup (HDF5Handle *handle, const char *group)
void freeHDF5attributes (HDF5attributes *attributes)
void printAttributes (HDF5attributes *attributes)
int readHDF5attributes (HDF5attributes *attr, HDF5Handle handle)
int readBoxes (box **boxes, int *length, HDF5Handle handle)
int writeHDF5attributes (HDF5attributes *attr, HDF5Handle handle)
int writeBoxes (box *boxes, int length, HDF5Handle handle)

Variables

struct {
   int   i
   int   j
intvect2d
struct {
   int   i
   int   j
   int   k
intvect3d
struct {
   intvect2d   lo
   intvect2d   hi
box2d
hid_t intvect2d_id
hid_t intvect3d_id
hid_t box2d_id
hid_t box3d_id
struct {
   hid_t   file_ID
   hid_t   group_ID
   int   dim
   ChPrecision   precision
HDF5Handle
enum { ... }  ChattributeType
const char * TYPE_NAMES [ChTYPES]
AttributeADD_tmp
AttributeADD_at


Define Documentation

#define ADD_ATTRIBUTE attrib,
Ttype,
ChType,
Sname,
value   
 

Value:

ADD_tmp = attrib.accessByType[ChType] ;                            \
ADD_at = (Attribute*) malloc(sizeof(Attribute));                   \
attrib.accessByType[ChType] = ADD_at;                              \
ADD_at->name = malloc(strlen(Sname)+1);                              \
sprintf(ADD_at->name, Sname);                                      \
ADD_at->data = malloc(sizeof(Ttype));                              \
ADD_at->attributeType = ChType;                                    \
*((Ttype *)ADD_at->data) = value;                                  \
  ADD_at->next = ADD_tmp;                                          \
attrib.numByType[ChType]++;                                        \

#define ADD_CHAR_ATTRIBUTE attrib,
Sname,
value   
 

Value:

ADD_tmp = attrib.accessByType[CHAR] ;                              \
ADD_at = (Attribute*) malloc(sizeof(Attribute));                   \
attrib.accessByType[CHAR] = ADD_at;                                \
ADD_at->name = malloc(strlen(Sname));                              \
sprintf(ADD_at->name, Sname);                                      \
ADD_at->data = malloc(strlen(value));                              \
ADD_at->attributeType = CHAR;                                      \
sprintf((char*)ADD_at->data, value);                               \
  ADD_at->next = ADD_tmp;                                          \
attrib.numByType[CHAR]++;                                          \

#define CFINITE      !isnan(X) && (X) < HUGE_VAL && (X) > -HUGE_VAL
 

create our own platform independent form that spans a lot of IEEE goofiness.

#define ChTYPES   8
 


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
INTEGER 
FLOAT 
DOUBLE 
CHAR 
INTVECT2D 
INTVECT3D 
BOX2D 
BOX3D 

enum ChPrecision
 

Enumeration values:
Float 
Double 


Function Documentation

box2d* crossSection const box3d   box,
int    dir,
box2d   box2
 

int cut const box3d   box,
int    dir,
int    index
 

void freeHDF5attributes HDF5attributes   attributes
 

void grow2 box2d  ,
intvect2d  
 

void grow3 box3d  ,
intvect3d  
 

int Handleclose HDF5Handle    handle
 

int HandleCreateGroup HDF5Handle   handle,
const char *    group
 

int Handleopen HDF5Handle   handle,
const char *    filename,
hid_t    accessMode
 

int HandlesetGroup HDF5Handle   handle,
const char *    group
 

void initializeHDF5datatypes  
 

int isEmpty const box2d  
 

int numPnts2 const box2d  
 

int numPnts3 const box3d  
 

void printAttributes HDF5attributes   attributes
 

int readBoxes box **    boxes,
int *    length,
HDF5Handle    handle
 

int readHDF5attributes HDF5attributes   attr,
HDF5Handle    handle
 

void refine2 box2d  ,
int    refinement
 

void refine3 box3d  ,
int    refinement
 

int writeBoxes box   boxes,
int    length,
HDF5Handle    handle
 

int writeEBChomboFile const char *    filename,
box3d    domain,
int    length,
box3d   boxes,
long *    regoffset,
long *    irregoffset,
long    numreg,
long    numirreg,
regvof   regularVofs,
irregvof   irregularVofs
 

int writeHDF5attributes HDF5attributes   attr,
HDF5Handle    handle
 


Variable Documentation

Attribute* ADD_at
 

Attribute* ADD_tmp
 

struct { ... } box2d
 

hid_t box2d_id [static]
 

hid_t box3d_id [static]
 

enum { ... } ChattributeType
 

int dim
 

hid_t file_ID
 

hid_t group_ID
 

struct { ... } HDF5Handle
 

intvect2d hi
 

int i
 

struct { ... } intvect2d
 

hid_t intvect2d_id [static]
 

struct { ... } intvect3d
 

hid_t intvect3d_id [static]
 

int j
 

int k
 

intvect2d lo
 

ChPrecision precision
 

const char* TYPE_NAMES[ChTYPES] [static]
 


Generated on Wed Apr 16 14:32:09 2003 for EBChombo by doxygen1.2.16