Chombo + EB + MF  3.2
Macros | Functions
mappedGridIO.H File Reference
#include "FourthOrderCoordSys.H"
#include "AMRIO.H"
#include "NodeAMRIO.H"
#include "REAL.H"
#include <string>
#include "NamespaceHeader.H"
#include "NamespaceFooter.H"
Include dependency graph for mappedGridIO.H:

Go to the source code of this file.

Macros

#define _MAPPEDGRIDIO_H_
 

Functions

void WriteMappedUGHDF5 (const string &a_fileRoot, const DisjointBoxLayout &a_grids, const LevelData< FArrayBox > &a_data, const FourthOrderCoordSys &a_CoordSys)
 Write single-level of mapped-grid data in HDF5 format. More...
 
void WriteMappedAMRHierarchyHDF5 (const string &fileRoot, const Vector< DisjointBoxLayout > &a_vectGrids, const Vector< LevelData< FArrayBox > * > &a_vectData, const Vector< string > &a_vectNames, const Vector< const FourthOrderCoordSys * > &a_vectCoordsys, const Real &a_dt, const Real &a_time, const Vector< int > &a_vectRatio, const int &a_numLevels)
 
void WriteMappedAMRHierarchyHDF5 (const string &fileRoot, const Vector< DisjointBoxLayout > &a_vectGrids, const Vector< LevelData< FArrayBox > * > &a_vectData, const Vector< const FourthOrderCoordSys * > &a_vectCoordsys, const Vector< int > &a_vectRatio, const int &a_numLevels)
 

Macro Definition Documentation

#define _MAPPEDGRIDIO_H_

Function Documentation

void WriteMappedUGHDF5 ( const string &  a_fileRoot,
const DisjointBoxLayout a_grids,
const LevelData< FArrayBox > &  a_data,
const FourthOrderCoordSys a_CoordSys 
)

Write single-level of mapped-grid data in HDF5 format.

Writes a single level in HDF5 format. Only available if the preprocessor macro HDF5 is defined at compilation. This is blocking.

Opens and writes to 2 files: fileRoot.<DIM>d.hdf5 contains the cell-centered dataset, while fileRoot.map.<DIM>d.hdf5 contains the node-centered mapped-grid information (which is the real-space locations of the nodes in mapped space.)

Arguments:

  • a_fileRoot: root of files to output to.
  • a_grids : grids
  • a_data : data
  • a_names : names of variables.
  • a_CoordSys: coordinate system
void WriteMappedAMRHierarchyHDF5 ( const string &  fileRoot,
const Vector< DisjointBoxLayout > &  a_vectGrids,
const Vector< LevelData< FArrayBox > * > &  a_vectData,
const Vector< string > &  a_vectNames,
const Vector< const FourthOrderCoordSys * > &  a_vectCoordsys,
const Real a_dt,
const Real a_time,
const Vector< int > &  a_vectRatio,
const int &  a_numLevels 
)

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

Opens and writes to 2 files: fileRoot.<DIM>d.hdf5 contains the cell-centered dataset, while fileRoot.map.<DIM>d.hdf5 contains the node-centered mapped-grid information (which is the real-space locations of the nodes in mapped space.)

{ Arguments:}\ fileRoot : root of files to output to.\ a_vectGrids : grids at each level.\ a_vectData : data at each level.\ a_vectNames: names of variables.\ a_vectCoordSys: coordinate systems for each AMR 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 WriteMappedAMRHierarchyHDF5 ( const string &  fileRoot,
const Vector< DisjointBoxLayout > &  a_vectGrids,
const Vector< LevelData< FArrayBox > * > &  a_vectData,
const Vector< const FourthOrderCoordSys * > &  a_vectCoordsys,
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.

Opens and writes to 2 files: fileRoot.<DIM>d.hdf5 contains the cell-centered dataset, while fileRoot.map.<DIM>d.hdf5 contains the node-centered mapped-grid information (which is the real-space locations of the nodes in mapped space.)

{ Arguments:}\ fileRoot : root of files to output to.\ a_vectGrids : grids at each level.\ a_vectData : data at each level.\ a_vectCoordSys: coordinate systems for each AMR 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.