EBInterface.H File Reference

#include <hdf5.h>
#include <math.h>
#include "NamespaceHeader.H"
#include "NamespaceFooter.H"

Include dependency graph for EBInterface.H:

Go to the source code of this file.

Classes

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

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
static hid_t intvect2d_id
static hid_t intvect3d_id
static hid_t box2d_id
static hid_t box3d_id
struct {
   hid_t   file_ID
   hid_t   group_ID
   int   dim
   ChPrecision   precision
HDF5Handle
enum { ... }  ChattributeType
static const char * TYPE_NAMES [ChTYPES]
AttributeADD_tmp
AttributeADD_at


Define Documentation

#define ChTYPES   8

#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.


Enumeration Type Documentation

Enumerator:
Float 
Double 

anonymous enum

Enumerator:
INTEGER 
FLOAT 
DOUBLE 
CHAR 
INTVECT2D 
INTVECT3D 
BOX2D 
BOX3D 


Function Documentation

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 
)

box2d* crossSection ( 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 
)


Variable Documentation

int i

Referenced by CutCellMoments< dim >::addMomentMaps(), LSProblem< dim >::allocArray(), LayoutData< T >::allocate(), BoxLayoutData< T >::allocateGhostVector(), BaseEBCellFAB< T >::assign(), IFData< dim >::BrentRootFinder(), CutCellMoments< dim >::changeMomentCoordinates(), MultiGrid< T >::clear(), BoxLayoutData< T >::clear(), AMRMultiGrid< T >::clear(), CutCellMoments< dim >::computeMoments(), CutCellMoments< 1 >::computeMomentsUsingBinomial(), CutCellMoments< dim >::computeResiduals(), MultiGrid< T >::define(), BaseFab< T >::define(), AMRMultiGrid< T >::define(), LevelData< T >::degenerate(), LSProblem< dim >::factorial(), BaseEBCellFAB< T >::fill(), LSProblem< dim >::freeArray(), MiniIVFAB< T >::getIndex(), IFData< dim >::IFData(), MultiGrid< T >::init(), AMRMultiGrid< T >::init(), LSProblem< dim >::invertNormalEq(), MiniIVFAB< T >::linearIn(), MiniIVFAB< T >::linearOut(), IFData< dim >::makeCornerSigns(), LSProblem< dim >::nChooseR(), DenseIntVectSetIterator::operator++(), IndexTM< T, N >::operator-(), operator<<(), Tuple< T, N >::operator=(), operator>>(), LSProblem< dim >::outputMatrix(), LSProblem< dim >::outputRhs(), LSProblem< dim >::outputUnknowns(), BaseFab< T >::performSetVal(), IFData< dim >::reduceGradNormal(), regionGather(), AMRMultiGrid< T >::relaxOnlyHomogeneous(), AMRMultiGrid< T >::revert(), IndexTM< T, N >::setAll(), IFData< dim >::setChangingDirection(), MiniIVFAB< T >::size(), BiCGStabSolver< T >::solve(), AMRMultiGrid< T >::solveNoInit(), Tuple< T, N >::Tuple(), and BaseFab< T >::undefine().

int j

struct { ... } intvect2d

int k

struct { ... } intvect3d

struct { ... } box2d

hid_t intvect2d_id [static]

hid_t intvect3d_id [static]

hid_t box2d_id [static]

hid_t box3d_id [static]

int dim

struct { ... } HDF5Handle

enum { ... } ChattributeType

const char* TYPE_NAMES[ChTYPES] [static]


Generated on Tue Apr 14 14:21:09 2009 for Chombo + EB by  doxygen 1.5.5