ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
#include <ERF_MultiBlockContainer.H>
Public Member Functions | |
MultiBlockContainer (const std::vector< amrex::RealBox > &rb_v, std::vector< int > max_level_in_v, const std::vector< amrex::Vector< int >> &n_cell_in_v, std::vector< int > coord_v, const std::vector< amrex::Vector< amrex::IntVect >> &ref_ratios_v, const std::vector< amrex::Array< int, AMREX_SPACEDIM >> &is_per_v, std::vector< std::string > prefix_v, int max_step) | |
~MultiBlockContainer () | |
void | InitializeBlocks () |
void | SetBoxLists () |
void | SetBlockCommMetaData () |
void | AdvanceBlocks () |
void | FillPatchBlocks (int src_ind, int dst_ind) |
Private Attributes | |
int | m_max_step |
ERF | erf1 |
ERF | erf2 |
amrex::NonLocalBC::MultiBlockIndexMapping | dtos |
std::vector< std::vector< amrex::NonLocalBC::MultiBlockCommMetaData * > > | cmd |
std::vector< amrex::BoxList > | blv |
MultiBlockContainer::MultiBlockContainer | ( | const std::vector< amrex::RealBox > & | rb_v, |
std::vector< int > | max_level_in_v, | ||
const std::vector< amrex::Vector< int >> & | n_cell_in_v, | ||
std::vector< int > | coord_v, | ||
const std::vector< amrex::Vector< amrex::IntVect >> & | ref_ratios_v, | ||
const std::vector< amrex::Array< int, AMREX_SPACEDIM >> & | is_per_v, | ||
std::vector< std::string > | prefix_v, | ||
int | max_step | ||
) |
Constructor for the MultiBlockContainer class capable of taking a vector of boxes as input.
Inputs that are vectors are used to define the two ERF instances in the MultiBlock class.
[in] | rb_v | Vector of RealBoxes to define this MultiBlock |
[in] | max_level_in_v | Maximum level vector |
[in] | n_cell_in_v | Number of cells vector |
[in] | coord_v | Coordinate selection vector |
[in] | ref_ratios_v | Refinement ratio vector |
[in] | is_per_v | Defines whether the domain is periodic in each coordinate direction |
[in] | prefix_v | Prefixes for ParmParse as a vector |
[in] | max_step | Maximum number of timesteps to take |
MultiBlockContainer::~MultiBlockContainer | ( | ) |
Destructor for the MultiBlockContainer
void MultiBlockContainer::AdvanceBlocks | ( | ) |
Advance blocks in the MultiBlockContainer by calling each timestep advance sequentially.
void MultiBlockContainer::FillPatchBlocks | ( | int | src_ind, |
int | dst_ind | ||
) |
Wrapper for ParallelCopy between classes
void MultiBlockContainer::InitializeBlocks | ( | ) |
void MultiBlockContainer::SetBlockCommMetaData | ( | ) |
Set up MultiBlock Communication Meta Data
void MultiBlockContainer::SetBoxLists | ( | ) |
Set up BoxList vector for use with Communication Meta Data
|
private |
Referenced by SetBlockCommMetaData(), and SetBoxLists().
|
private |
Referenced by FillPatchBlocks(), and SetBlockCommMetaData().
|
private |
Referenced by FillPatchBlocks(), MultiBlockContainer(), and SetBlockCommMetaData().
|
private |
Referenced by AdvanceBlocks(), FillPatchBlocks(), InitializeBlocks(), MultiBlockContainer(), and SetBlockCommMetaData().
|
private |
Referenced by AdvanceBlocks(), FillPatchBlocks(), InitializeBlocks(), MultiBlockContainer(), SetBlockCommMetaData(), and SetBoxLists().
|
private |
Referenced by AdvanceBlocks().