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

LDFIO.H File Reference

#include "LevelData.H"
#include "REAL.H"
#include "Vector.H"
#include "FArrayBox.H"
#include "IntVectSet.H"
#include <string>

Include dependency graph for LDFIO.H:

Include dependency graph

Go to the source code of this file.

Functions

void writeAFabASCII (std::ostream &os, const FArrayBox &fab)
void readAFabASCII (istream &is, FArrayBox &fab)
void WriteAMRHierarchyASCII (const string &filename, const Vector< DisjointBoxLayout > &a_vectGrids, const Vector< LevelData< FArrayBox > * > &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)
int ReadAMRHierarchyASCII (const string &filename, Vector< DisjointBoxLayout > &a_vectGrids, Vector< LevelData< FArrayBox > * > &a_vectData, Vector< string > &a_vectNames, Box &a_domain, Real &a_dx, Real &a_dt, Real &a_time, Vector< int > &a_vectRatio, int &a_numLevels, const IntVect &ghostVector=IntVect::TheZeroVector())
int ReadEBAMRASCII (const string &filename, Vector< DisjointBoxLayout > &a_vectGrids, Vector< LevelData< FArrayBox > * > &a_vectData, Vector< string > &a_vectNames, Box &a_domain, Vector< IntVectSet > &a_coveredCells, Vector< IntVectSet > &a_multiValuedCells, Vector< int > &a_refRatio, int &a_numLevels, const IntVect &a_ghostVector=IntVect::TheZeroVector())


Function Documentation

void readAFabASCII istream &    is,
FArrayBox   fab
 

int ReadAMRHierarchyASCII const string &    filename,
Vector< DisjointBoxLayout > &    a_vectGrids,
Vector< LevelData< FArrayBox > * > &    a_vectData,
Vector< string > &    a_vectNames,
Box   a_domain,
Real   a_dx,
Real   a_dt,
Real   a_time,
Vector< int > &    a_vectRatio,
int &    a_numLevels,
const IntVect   ghostVector = IntVect::TheZeroVector()
 

Reads hierarchy of levels in ASCII format. Returns 0 on success.

{\bf Arguments:}\ filename : file to output to.\ a_vectGrids : grids at each level.\ a_vectData : data at each level.\ a_vectNames: names of variables.\ 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.\ a_ghostVector : number of ghost cells on output .\

{\bf Returns:}\ status code with values:\ 0: success\ -1: failure\

int ReadEBAMRASCII const string &    filename,
Vector< DisjointBoxLayout > &    a_vectGrids,
Vector< LevelData< FArrayBox > * > &    a_vectData,
Vector< string > &    a_vectNames,
Box   a_domain,
Vector< IntVectSet > &    a_coveredCells,
Vector< IntVectSet > &    a_multiValuedCells,
Vector< int > &    a_refRatio,
int &    a_numLevels,
const IntVect   a_ghostVector = IntVect::TheZeroVector()
 

Reads hierarchy of EB levels in ASCII format. Returns 0 on success. Data is read in as FArrayBoxes because the data file does not include sufficient information to reconstruct the EBIS. {\bf Arguments:}\ filename : file to input from.\ a_vectGrids : grids at each level.\ a_vectData : data at each level.\ a_vectNames: names of variables.\ 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_multiValuedCells : multi-valued cells at all levels \ (ith entry is refinement ratio between levels i and i + 1).\ a_coveredCells : covered cells at all levels \ (ith entry is refinement ratio between levels i and i + 1).\ a_numLevels : number of levels to read.\ returns 0 if successful.

void writeAFabASCII std::ostream &    os,
const FArrayBox   fab
 

void WriteAMRHierarchyASCII const string &    filename,
const Vector< DisjointBoxLayout > &    a_vectGrids,
const Vector< LevelData< FArrayBox > * > &    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 ASCII format.

{\bf Arguments:}\ filename : file to output to.\ a_vectGrids : grids at each level.\ a_vectData : data at each level.\ a_vectNames: names of variables.\ 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.\


Generated on Tue Jul 2 10:43:06 2002 for Chombo by doxygen1.2.16