|
IBAMR
IBAMR version 0.19.
|
#include <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) |
Private Member Functions | |
| void | readLevelBoxesDatabase () |
Private Attributes | |
| std::string | d_hdf_dirname |
| IOTYPE | d_iotype |
| tbox::Array< tbox::Array< BoxArray< DIM > > > | d_level_boxes |
Class BoxIOUtility<DIM> supports writing and reading box information to an HDF file.
| 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.
|
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.
|
private |
|
private |
|
private |
|
private |
1.8.17