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

NodeAMRIO.H File Reference

#include "REAL.H"
#include "LevelData.H"
#include "Vector.H"
#include "NodeFArrayBox.H"
#include <string>
#include "LDF.H"
#include "IntVect.H"

Include dependency graph for NodeAMRIO.H:

Include dependency graph

Go to the source code of this file.

Functions

void WriteAMRHierarchyHDF5 (const string &filename, const Vector< DisjointBoxLayout > &a_vectGrids, const Vector< LevelData< NodeFArrayBox > * > &a_vectData, const Vector< string > &a_vectNames, const Box &a_domain, const Real &a_dx, const Real &a_dt, const Real &a_time, const Vector< int > &a_vectRatio, const int &a_numLevels)
void WriteAMRHierarchyHDF5 (const string &filename, const Vector< DisjointBoxLayout > &a_vectGrids, const Vector< Vector< LevelData< NodeFArrayBox > * > > &a_vectData, const Vector< string > &a_vectNames, const Box &a_domain, const Real &a_dx, const Real &a_dt, const Real &a_time, const Vector< int > &a_vectRatio, const int &a_numLevels)
void WriteAMRHierarchyHDF5 (HDF5Handle &handle, const Vector< DisjointBoxLayout > &a_vectGrids, const Vector< LevelData< NodeFArrayBox > * > &a_vectData, const Vector< string > &a_vectNames, const Box &a_domain, const Real &a_dx, const Real &a_dt, const Real &a_time, const Vector< int > &a_vectRatio, const int &a_numLevels)
void WriteAMRHierarchyHDF5 (const string &filename, const Vector< DisjointBoxLayout > &a_vectGrids, const Vector< LevelData< NodeFArrayBox > * > &a_vectData, const Box &a_domain, const Vector< int > &a_vectRatio, const int &a_numLevels)
void WriteAMRHierarchyHDF5 (HDF5Handle &handle, const Vector< DisjointBoxLayout > &a_vectGrids, const Vector< LevelData< NodeFArrayBox > * > &a_vectData, const Box &a_domain, const Vector< int > &a_vectRatio, const int &a_numLevels)
int ReadAMRHierarchyHDF5 (const string &filename, Vector< DisjointBoxLayout > &a_vectGrids, Vector< LevelData< NodeFArrayBox > * > &a_vectData, Vector< string > &a_vectNames, Box &a_domain, Real &a_dx, Real &a_dt, Real &a_time, Vector< int > &a_refRatio, int &a_numLevels, const IntVect &a_ghostVector=IntVect::TheZeroVector())
int ReadAMRHierarchyHDF5 (HDF5Handle &handle, Vector< DisjointBoxLayout > &a_vectGrids, Vector< LevelData< NodeFArrayBox > * > &a_vectData, Vector< string > &a_vectNames, Box &a_domain, Real &a_dx, Real &a_dt, Real &a_time, Vector< int > &a_refRatio, int &a_numLevels, const IntVect &a_ghostVector=IntVect::TheZeroVector())
int ReadAMRHierarchyHDF5 (const string &filename, Vector< DisjointBoxLayout > &a_vectGrids, Vector< LevelData< NodeFArrayBox > * > &a_vectData, Box &a_domain, Vector< int > &a_refRatio, int &a_numLevels, const IntVect &a_ghostVector=IntVect::TheZeroVector())
int ReadAMRHierarchyHDF5 (HDF5Handle &handle, Vector< DisjointBoxLayout > &a_vectGrids, Vector< LevelData< NodeFArrayBox > * > &a_vectData, Box &a_domain, Vector< int > &a_refRatio, int &a_numLevels, const IntVect &a_ghostVector=IntVect::TheZeroVector())
void writeNFAB (const NodeFArrayBox *a_dataPtr)
void viewNFAB (const NodeFArrayBox *a_dataPtr)
void writeNFABname (const NodeFArrayBox *a_dataPtr, const char *a_filename)
void writeNodeLevel (const LevelData< NodeFArrayBox > *a_dataPtr)
void viewNodeLevel (const LevelData< NodeFArrayBox > *a_dataPtr)
void writeNodeLevelname (const LevelData< NodeFArrayBox > *a_dataPtr, const char *a_filename)
void WritePartialAMRHierarchyHDF5 (const string &filename, const Vector< DisjointBoxLayout > &a_vectGrids, const Vector< LevelData< FArrayBox > * > &a_vectData, const Vector< string > &a_vectNames, const Box &a_baseDomain, const Real &a_baseDx, const Real &a_dt, const Real &a_time, const Vector< int > &a_vectRatio, const Interval &a_levels)
void WritePartialAMRHierarchyHDF5 (const string &filename, const Vector< DisjointBoxLayout > &a_vectGrids, const Vector< Vector< LevelData< NodeFArrayBox > * > > &a_vectData, const Vector< string > &a_vectNames, const Box &a_baseDomain, const Real &a_baseDx, const Real &a_dt, const Real &a_time, const Vector< int > &a_vectRatio, const Interval &a_levels)


Function Documentation

int ReadAMRHierarchyHDF5 HDF5Handle &    handle,
Vector< DisjointBoxLayout > &    a_vectGrids,
Vector< LevelData< NodeFArrayBox > * > &    a_vectData,
Box &    a_domain,
Vector< int > &    a_refRatio,
int &    a_numLevels,
const IntVect &    a_ghostVector = IntVect::TheZeroVector()
 

Reads hierarchy of levels in HDF5 format. Only available if the preprocessor macro HDF5 is defined at compilation. Returns 0 on success.

{\bf Arguments:}\ handle : handle to input from.\ a_vectGrids : grids at each level.\ a_vectData : data indexed by level.\ a_domain : domain at coarsest level.\ a_vectRatio : refinement ratio at all levels (ith entry is refinement ratio between levels i and i + 1).\ a_numLevels : number of levels to read.\

{\bf Returns:} \ status code with values:\ 0: success \ -1: bogus number of levels \ -2: bogus number of components \ -3: error in readlevel \ -4: file open failed \

This is not blocking.

int ReadAMRHierarchyHDF5 const string &    filename,
Vector< DisjointBoxLayout > &    a_vectGrids,
Vector< LevelData< NodeFArrayBox > * > &    a_vectData,
Box &    a_domain,
Vector< int > &    a_refRatio,
int &    a_numLevels,
const IntVect &    a_ghostVector = IntVect::TheZeroVector()
 

Reads hierarchy of levels in HDF5 format. Only available if the preprocessor macro HDF5 is defined at compilation. Returns 0 on success.

{\bf Arguments:}\ filename : file to input from.\ a_vectGrids : grids at each level.\ a_vectData : data indexed by level.\ a_domain : domain at coarsest level.\ a_vectRatio : refinement ratio at all levels (ith entry is refinement ratio between levels i and i + 1).\ a_numLevels : number of levels to read.\

{\bf Returns:} \ status code with values:\ 0: success \ -1: bogus number of levels \ -2: bogus number of components \ -3: error in readlevel \ -4: file open failed \

This is blocking.

int ReadAMRHierarchyHDF5 HDF5Handle &    handle,
Vector< DisjointBoxLayout > &    a_vectGrids,
Vector< LevelData< NodeFArrayBox > * > &    a_vectData,
Vector< string > &    a_vectNames,
Box &    a_domain,
Real &    a_dx,
Real &    a_dt,
Real &    a_time,
Vector< int > &    a_refRatio,
int &    a_numLevels,
const IntVect &    a_ghostVector = IntVect::TheZeroVector()
 

Reads hierarchy of levels in HDF5 format. Only available if the preprocessor macro HDF5 is defined at compilation. Returns 0 on success.

{\bf Arguments:}\ handle : handle to input from.\ a_vectGrids : grids at each level.\ a_vectData : data indexed by level.\ a_vectNames: names of variables in a_vectData.\ a_domain : domain at coarsest level.\ a_dx : grid spacing at coarsest level.\ a_dt : time step at coarsest level.\ a_time : time.\ a_vectRatio : refinement ratio at all levels (ith entry is refinement ratio between levels i and i + 1).\ a_numLevels : number of levels to read.\

{\bf Returns:} \ status code with values:\ 0: success \ -1: bogus number of levels \ -2: bogus number of components \ -3: error in readlevel \ -4: file open failed \

This is not blocking.

int ReadAMRHierarchyHDF5 const string &    filename,
Vector< DisjointBoxLayout > &    a_vectGrids,
Vector< LevelData< NodeFArrayBox > * > &    a_vectData,
Vector< string > &    a_vectNames,
Box &    a_domain,
Real &    a_dx,
Real &    a_dt,
Real &    a_time,
Vector< int > &    a_refRatio,
int &    a_numLevels,
const IntVect &    a_ghostVector = IntVect::TheZeroVector()
 

Reads hierarchy of levels in HDF5 format. Only available if the preprocessor macro HDF5 is defined at compilation. Returns 0 on success.

{\bf Arguments:}\ filename : file to input from.\ a_vectGrids : grids at each level.\ a_vectData : data indexed by level.\ a_vectNames: names of variables in a_vectData.\ a_domain : domain at coarsest level.\ a_dx : grid spacing at coarsest level.\ a_dt : time step at coarsest level.\ a_time : time.\ a_vectRatio : refinement ratio at all levels (ith entry is refinement ratio between levels i and i + 1).\ a_numLevels : number of levels to read.\

{\bf Returns:} \ status code with values:\ 0: success \ -1: bogus number of levels \ -2: bogus number of components \ -3: error in readlevel \ -4: file open failed \

This is blocking.

void viewNFAB const NodeFArrayBox   a_dataPtr
 

View *a_dataPtr by writing it to an HDF5 plotfile (to a temporary file) and then running ChomboVis with a python script which brings up a data browser by default. The file has the same format as WriteAMRHierarchyHDF5, but for a single NodeFArrayBox. This is useful for debugging.

void viewNodeLevel const LevelData< NodeFArrayBox > *    a_dataPtr
 

View *a_dataPtr by writing it to an HDF5 plotfile (to a temporary file) and then running ChomboVis with a python script which brings up a data browser by default. The file has the same format as WriteAMRHierarchyHDF5, but for a single LevelData<NodeFArrayBox>. This is useful for debugging.

void WriteAMRHierarchyHDF5 HDF5Handle &    handle,
const Vector< DisjointBoxLayout > &    a_vectGrids,
const Vector< LevelData< NodeFArrayBox > * > &    a_vectData,
const Box &    a_domain,
const Vector< int > &    a_vectRatio,
const int &    a_numLevels
 

Writes hierarchy of levels in HDF5 format. Only available if the preprocessor macro HDF5 is defined at compilation.

{\bf Arguments:}\ handle : handle to output to.\ a_vectGrids : grids at each level.\ a_vectData : data indexed by level.\ a_domain : domain at coarsest level.\ a_vectRatio : refinement ratio at all levels (ith entry is refinement ratio between levels i and i + 1).\ a_numLevels : number of levels to output.\

This is not blocking.

void WriteAMRHierarchyHDF5 const string &    filename,
const Vector< DisjointBoxLayout > &    a_vectGrids,
const Vector< LevelData< NodeFArrayBox > * > &    a_vectData,
const Box &    a_domain,
const Vector< int > &    a_vectRatio,
const int &    a_numLevels
 

Writes hierarchy of levels in HDF5 format. Only available if the preprocessor macro HDF5 is defined at compilation.

{\bf Arguments:}\ filename : file to output to.\ a_vectGrids : grids at each level.\ a_vectData : data indexed by level.\ a_domain : domain at coarsest level.\ a_vectRatio : refinement ratio at all levels (ith entry is refinement ratio between levels i and i + 1).\ a_numLevels : number of levels to output.\

This is blocking.

void WriteAMRHierarchyHDF5 HDF5Handle &    handle,
const Vector< DisjointBoxLayout > &    a_vectGrids,
const Vector< LevelData< NodeFArrayBox > * > &    a_vectData,
const Vector< string > &    a_vectNames,
const Box &    a_domain,
const Real &    a_dx,
const Real &    a_dt,
const Real &    a_time,
const Vector< int > &    a_vectRatio,
const int &    a_numLevels
 

Writes hierarchy of levels in HDF5 format. Only available if the preprocessor macro HDF5 is defined at compilation.

{\bf Arguments:}\ handle : handle to output to.\ a_vectGrids : grids at each level.\ a_vectData : data indexed by level.\ a_vectNames: names of variables in a_vectData.\ a_domain : domain at coarsest level.\ a_dx : grid spacing at coarsest level.\ a_dt : time step at coarsest level.\ a_time : time.\ a_vectRatio : refinement ratio at all levels (ith entry is refinement ratio between levels i and i + 1).\ a_numLevels : number of levels to output.\

This is not blocking.

void WriteAMRHierarchyHDF5 const string &    filename,
const Vector< DisjointBoxLayout > &    a_vectGrids,
const Vector< Vector< LevelData< NodeFArrayBox > * > > &    a_vectData,
const Vector< string > &    a_vectNames,
const Box &    a_domain,
const Real &    a_dx,
const Real &    a_dt,
const Real &    a_time,
const Vector< int > &    a_vectRatio,
const int &    a_numLevels
 

Writes hierarchy of levels in HDF5 format. Only available if the preprocessor macro HDF5 is defined at compilation.

This function differs from the previous one in that a_vectData[ind][lev] indexes a LevelData<NodeFArrayBox>* (which may have several components) at level lev.

{\bf Arguments:}\ filename : file to output to.\ a_vectGrids : grids at each level.\ a_vectData : data indexed by set and then by level.\ a_vectNames: names of variables in a_vectData (first the names of the components of a_vectData[0], then the names of the components of a_vectData[1], etc.) \ a_domain : domain at coarsest level.\ a_dx : grid spacing at coarsest level.\ a_dt : time step at coarsest level.\ a_time : time.\ a_vectRatio : refinement ratio at all levels (ith entry is refinement ratio between levels i and i + 1).\ a_numLevels : number of levels to output.\

This is blocking.

void WriteAMRHierarchyHDF5 const string &    filename,
const Vector< DisjointBoxLayout > &    a_vectGrids,
const Vector< LevelData< NodeFArrayBox > * > &    a_vectData,
const Vector< string > &    a_vectNames,
const Box &    a_domain,
const Real &    a_dx,
const Real &    a_dt,
const Real &    a_time,
const Vector< int > &    a_vectRatio,
const int &    a_numLevels
 

Writes hierarchy of levels in HDF5 format. Only available if the preprocessor macro HDF5 is defined at compilation.

{\bf Arguments:}\ filename : file to output to.\ a_vectGrids : grids at each level.\ a_vectData : data indexed by level.\ a_vectNames: names of variables in a_vectData.\ a_domain : domain at coarsest level.\ a_dx : grid spacing at coarsest level.\ a_dt : time step at coarsest level.\ a_time : time.\ a_vectRatio : refinement ratio at all levels (ith entry is refinement ratio between levels i and i + 1).\ a_numLevels : number of levels to output.\

This is blocking.

void writeNFAB const NodeFArrayBox   a_dataPtr
 

Writes a plotfile using the same format as WriteAMRHierarchyHDF5, but for a NodeFArrayBox. This is useful for debugging. *a_dataPtr is written to a file named nfab.hdf5

void writeNFABname const NodeFArrayBox   a_dataPtr,
const char *    a_filename
 

Writes a plotfile using the same format as WriteAMRHierarchyHDF5, but for a NodeFArrayBox. This is useful for debugging. *a_dataPtr is written to the file given by a_filename.

void writeNodeLevel const LevelData< NodeFArrayBox > *    a_dataPtr
 

Write a plotfile using the same format as WriteAMRHierarchyHDF5, but for a single LevelData<NodeFArrayBox>. Useful for debugging. *a_dataPtr is written to a file named LDF.hdf5.

void writeNodeLevelname const LevelData< NodeFArrayBox > *    a_dataPtr,
const char *    a_filename
 

Write a plotfile using the same format as WriteAMRHierarchyHDF5, but for a single LevelData<FArrayBox>. Useful for debugging. *a_dataPtr is written to the file given by a_filename.

void WritePartialAMRHierarchyHDF5 const string &    filename,
const Vector< DisjointBoxLayout > &    a_vectGrids,
const Vector< Vector< LevelData< NodeFArrayBox > * > > &    a_vectData,
const Vector< string > &    a_vectNames,
const Box &    a_baseDomain,
const Real &    a_baseDx,
const Real &    a_dt,
const Real &    a_time,
const Vector< int > &    a_vectRatio,
const Interval &    a_levels
 

Write a plotfile with levels that don't necessarily begin with 0 (will translate things so that lBase comes out as level 0, etc) Levels in Vector arguments should correspond with actual levels. (and so should be defined for a_levels.begin() through a_levels.end().

This function differs from the previous one in that a_vectData[ind][lev] indexes a LevelData<NodeFArrayBox>* (which may have several components) at level lev.

{\bf Arguments:}\ filename : file to output to.\ a_vectGrids : grids at each level.\ a_vectData : data indexed by set and then by level.\ a_vectNames: names of variables in a_vectData (first the names of the components of a_vectData[0], then the names of the components of a_vectData[1], etc.) \ a_baseDomain : domain at base level (given by a_levels.begin()).\ a_baseDx : grid spacing at base level.\ a_dt : time step at base level.\ a_time : time.\ a_vectRatio : refinement ratio at all levels (ith entry is refinement ratio between levels i and i + 1).\ a_levels : levels to output.\

This is blocking.

void WritePartialAMRHierarchyHDF5 const string &    filename,
const Vector< DisjointBoxLayout > &    a_vectGrids,
const Vector< LevelData< FArrayBox > * > &    a_vectData,
const Vector< string > &    a_vectNames,
const Box &    a_baseDomain,
const Real &    a_baseDx,
const Real &    a_dt,
const Real &    a_time,
const Vector< int > &    a_vectRatio,
const Interval &    a_levels
 

Write a plotfile with levels that don't necessarily begin with 0 (will translate things so that lBase comes out as level 0, etc) Levels in Vector arguments should correspond with actual levels. (and so should be defined for a_levels.begin() through a_levels.end().

{\bf Arguments:}\ filename : file to output to.\ a_vectGrids : grids at each level.\ a_vectData : data indexed by level.\ a_vectNames: names of variables in a_vectData.\ a_baseDomain : domain at base level (given by a_levels.begin()).\ a_baseDx : grid spacing at base level.\ a_dt : time step at base level.\ a_time : time.\ a_vectRatio : refinement ratio at all levels (ith entry is refinement ratio between levels i and i + 1).\ a_levels : levels to output.\

This is blocking.


Generated on Tue Apr 15 18:31:56 2003 for AMRNodeElliptic by doxygen1.2.16