#include <source/hierarchy/boxes/BoxIOUtility.h>
Public Types | |
enum | IOTYPE { READ = 0, WRITE = 1 } |
Public Member Functions | |
BoxIOUtility (const std::string &dirname, const IOTYPE iotype) | |
virtual | ~BoxIOUtility () |
void | getLevelBoxes (BoxArray< DIM > &level_boxes, const int level_number, const int entry_number) |
void | putLevelBoxes (const BoxArray< DIM > &level_boxes, const int level_number, const int entry_number) |
int | getNumberOfLevels () |
int | getNumberOfEntries (const int level_number) |
void | writeLevelBoxesDatabase () |
void | printBoxes (std::ostream &os) |
enum SAMRAI::hier::BoxIOUtility::IOTYPE |
SAMRAI::hier::BoxIOUtility< DIM >::BoxIOUtility | ( | const std::string & | dirname, | |
const IOTYPE | iotype | |||
) |
The constructor requires the name of the HDF database to write or read to, and the IOTYPE.
SAMRAI::hier::BoxIOUtility< DIM >::~BoxIOUtility | ( | ) | [virtual] |
Virtual destructor.
void SAMRAI::hier::BoxIOUtility< DIM >::getLevelBoxes | ( | BoxArray< DIM > & | level_boxes, | |
const int | level_number, | |||
const int | entry_number | |||
) |
Pulls refinement boxes corresponding to the provided level and entry number from storage array - returns a boxlist with the corresponding refine boxes.
void SAMRAI::hier::BoxIOUtility< DIM >::putLevelBoxes | ( | const BoxArray< DIM > & | level_boxes, | |
const int | level_number, | |||
const int | entry_number | |||
) |
Puts new refinement boxes corresponding to the provided level and entry number into storage arrays.
int SAMRAI::hier::BoxIOUtility< DIM >::getNumberOfLevels | ( | ) |
Returns the number of levels in the database.
int SAMRAI::hier::BoxIOUtility< DIM >::getNumberOfEntries | ( | const int | level_number | ) |
Returns the number of entries in the database for the specified level.
void SAMRAI::hier::BoxIOUtility< DIM >::writeLevelBoxesDatabase | ( | ) |
Opens and writes to an HDF database directory with the prescribed name a set of refinement boxes used during the run.
void SAMRAI::hier::BoxIOUtility< DIM >::printBoxes | ( | std::ostream & | os | ) |
Print the boxes stored in the database to the specified IO stream.