#include <hdf5.h>
#include <math.h>
#include "NamespaceHeader.H"
#include "NamespaceFooter.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) |
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) |
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] |
Attribute * | ADD_tmp |
Attribute * | ADD_at |
#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 | ( | X | ) | !isnan(X) && (X) < HUGE_VAL && (X) > -HUGE_VAL |
create our own platform independent form that spans a lot of IEEE goofiness.
enum ChPrecision |
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 refine2 | ( | box2d * | , | |
int | refinement | |||
) |
void refine3 | ( | box3d * | , | |
int | refinement | |||
) |
int cut | ( | const box3d * | box, | |
int | dir, | |||
int | index | |||
) |
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 | |||
) |
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 |
Referenced by CutCellMoments< dim >::addMomentMaps(), LSProblem< dim >::allocArray(), CutCellMoments< 1 >::changeMomentCoordinates(), CutCellMoments< dim >::changeMomentCoordinates(), CutCellMoments< 1 >::computeMomentsUsingBinomial(), CutCellMoments< dim >::computeResiduals(), LSProblem< dim >::fillMap(), IFData< dim >::IFData(), LSProblem< dim >::invertNormalEq(), IFData< dim >::makeCornerSigns(), LSProblem< dim >::momentBounds(), LSProblem< dim >::outputMatrix(), IFData< dim >::reduceGradNormal(), and IFData< dim >::searchNormalDir().
struct { ... } intvect2d |
int k |
struct { ... } intvect3d |
Referenced by CutCellMoments< 1 >::computeMoments(), IFData< dim >::makeEdgeKey(), and IFData< 1 >::print().
Referenced by CutCellMoments< 1 >::computeMoments(), IFData< dim >::makeEdgeKey(), and IFData< 1 >::print().
struct { ... } box2d |
hid_t intvect2d_id [static] |
hid_t intvect3d_id [static] |
int dim |
Referenced by CutCellMoments< dim >::addBdMoments(), CutCellMoments< dim >::addMomentMaps(), CutCellMoments< dim >::changeMomentCoordinates(), LSProblem< dim >::computeBounds(), CutCellMoments< dim >::computeMoments(), CutCellMoments< dim >::computeResiduals(), CutCellMoments< dim >::computeRhs(), CutCellMoments< dim >::CutCellMoments(), LSProblem< dim >::differentiate(), LSProblem< dim >::fillMap(), CutCellMoments< dim >::fullCellQuadrature(), CutCellMoments< dim >::getCentroid(), CutCellMoments< dim >::getVol(), IFData< dim >::IFData(), CutCellMoments< dim >::initialize(), LSProblem< dim >::invertNormalEq(), IFData< dim >::isConnected(), LSProblem< dim >::LSProblem(), IFData< dim >::makeCornerSigns(), IFData< dim >::makeEdgeKey(), LSProblem< dim >::momentBounds(), LSProblem< dim >::numMonomials(), LSProblem< dim >::outputMatrix(), LSProblem< dim >::print(), CutCellMoments< dim >::print(), CutCellMoments< dim >::printBdMoments(), IFData< dim >::reduceGradNormal(), CutCellMoments< dim >::refine(), IFData< dim >::relCoord(), IFData< dim >::rootFinder(), LSProblem< dim >::setMatrix(), IFData< dim >::setNormal(), and LSProblem< dim >::~LSProblem().
struct { ... } HDF5Handle |
enum { ... } ChattributeType |
const char* TYPE_NAMES[ChTYPES] [static] |