Class to read, modify, and write MultiFab header in Level_0/Cell_H when back-transformed diag format is selected as plotfile. This class enables multiple fabs to be interweaved and stitched into a single plotfile with a single Header, Cell_H.
More...
#include <BTD_Plotfile_Header_Impl.H>
Class to read, modify, and write MultiFab header in Level_0/Cell_H when back-transformed diag format is selected as plotfile. This class enables multiple fabs to be interweaved and stitched into a single plotfile with a single Header, Cell_H.
◆ BTDMultiFabHeaderImpl()
BTDMultiFabHeaderImpl::BTDMultiFabHeaderImpl |
( |
std::string const & |
Headerfile_path | ) |
|
Constructor.
- Parameters
-
[in] | Headerfile_path | string containing path of Headerfile |
◆ ba_box()
Returns box corresponding to the ith box in the BoxArray, m_ba.
- Parameters
-
[in] | ibox | index of the box in the BoxArray. |
◆ ba_size()
int BTDMultiFabHeaderImpl::ba_size |
( |
| ) |
const |
|
inline |
Returns size, m_ba_size, of the Box Array, m_ba.
◆ CopyVec()
Copy values of the vector from the src vector, src, to dst vector.
◆ FabHead()
int BTDMultiFabHeaderImpl::FabHead |
( |
int |
ifab | ) |
|
|
inline |
Returns the starting byte of the ith fab data
◆ FabName()
std::string BTDMultiFabHeaderImpl::FabName |
( |
int |
ifab | ) |
|
|
inline |
Returns name of the ith fab stored in the MultiFab.
◆ fodPrefix()
std::string BTDMultiFabHeaderImpl::fodPrefix |
( |
int |
ifab | ) |
|
|
inline |
Returns prefix of the ith-fab on disk, i.e., ith fab of the MultiFab data.
- Parameters
-
[in] | ifab | index of the ith fab in the MultiFab data. |
◆ IncreaseMultiFabSize()
void BTDMultiFabHeaderImpl::IncreaseMultiFabSize |
( |
int |
add_mf_size | ) |
|
|
inline |
Increments MultiFab size, m_ba_size, by add_mf_size.
- Parameters
-
[in] | add_mf_size | number of new multifabs to be appended to the existing Box Array. |
◆ maxval()
Returns maximum value of all the components stored in the ith fab.
◆ minval()
Returns minimum value of all the components stored in the ith fab.
◆ ReadMultiFabHeader()
void BTDMultiFabHeaderImpl::ReadMultiFabHeader |
( |
| ) |
|
Reads the Multifab Header file and stores its data.
◆ ResizeFabData()
void BTDMultiFabHeaderImpl::ResizeFabData |
( |
| ) |
|
◆ SetBox()
void BTDMultiFabHeaderImpl::SetBox |
( |
int |
ibox, |
|
|
amrex::Box |
ba_box |
|
) |
| |
|
inline |
Set Box indices of the ith-box in Box Array, m_ba, to the new Box, ba_box.
- Parameters
-
[in] | ibox | index of the ith box in BoxArray, m_ba. |
[in] | ba_box | dimensions corresponding to the ith Fab. |
◆ SetFabName()
void BTDMultiFabHeaderImpl::SetFabName |
( |
int |
ifab, |
|
|
const std::string & |
fodPrefix, |
|
|
const std::string & |
FabName, |
|
|
int |
FabHead |
|
) |
| |
Set Fab name of the ith fab to be written in the multifab Header file.
◆ SetMaxVal()
void BTDMultiFabHeaderImpl::SetMaxVal |
( |
int |
ifab, |
|
|
const amrex::Vector< amrex::Real > & |
maxval |
|
) |
| |
Set maximum value of all the components for the ith fab.
◆ SetMinVal()
void BTDMultiFabHeaderImpl::SetMinVal |
( |
int |
ifab, |
|
|
const amrex::Vector< amrex::Real > & |
minval |
|
) |
| |
Set minimum value of all the components for the ith fab.
◆ WriteMultiFabHeader()
void BTDMultiFabHeaderImpl::WriteMultiFabHeader |
( |
| ) |
|
Writes the meta-data of the Multifab in a header file, with path, m_Header_path.
◆ m_ba
BoxArray corresponding to the multifab stored in the plotfile.
◆ m_ba_size
int BTDMultiFabHeaderImpl::m_ba_size |
|
private |
Size of the BoxArray, m_ba.
◆ m_fabhead
◆ m_fabname
◆ m_FabOnDiskPrefix
amrex::Vector<std::string> BTDMultiFabHeaderImpl::m_FabOnDiskPrefix |
|
private |
◆ m_Header_path
std::string BTDMultiFabHeaderImpl::m_Header_path |
|
private |
◆ m_how
int BTDMultiFabHeaderImpl::m_how |
|
private |
◆ m_maxval
The max of each component of each FAB in the BoxArray, m_ba. To access the max value of the ith fab and jth component [ifab][jcomp]
◆ m_minval
The min of each component of each FAB in the BoxArray, m_ba. To access the min value of the ith fab and jth component [ifab][jcomp]
◆ m_ncomp
int BTDMultiFabHeaderImpl::m_ncomp |
|
private |
number of components stored in the multifab.
◆ m_ngrow
int BTDMultiFabHeaderImpl::m_ngrow |
|
private |
number of guard cells in the multifab.
◆ m_vers
int BTDMultiFabHeaderImpl::m_vers |
|
private |
The documentation for this class was generated from the following files: