|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
#include <ERF_SBMAMRFluxRegister.H>

Classes | |
| struct | SideState |
Public Member Functions | |
| SBMAMRFluxRegister ()=default | |
| SBMAMRFluxRegister (const SBMAMRFluxRegister &)=delete | |
| SBMAMRFluxRegister & | operator= (const SBMAMRFluxRegister &)=delete |
| void | define (const amrex::BoxArray &fine_ba, const amrex::BoxArray &coarse_ba, const amrex::DistributionMapping &fine_dm, const amrex::DistributionMapping &coarse_dm, const amrex::Geometry &fine_geom, const amrex::Geometry &coarse_geom, const amrex::IntVect &ratio, int fine_level, int ncomp) |
| void | clear () |
| bool | begin_interval (double coarse_begin, double coarse_end, int expected_fine_steps, std::string &diagnostic) |
| bool | begin_level_step (bool coarse_side, double step_begin, double step_end, std::string &diagnostic) |
| bool | begin_stage (bool coarse_side, erf_auxiliary::HostIntegrator method, int stage, double step_begin, std::string &diagnostic) |
| bool | add_stage_rates (bool coarse_side, const erf_auxiliary::MappedFaceFluxRate &accepted_rate, const std::vector< int > ®ister_components, double completed_ledger_time, std::string &diagnostic) |
| bool | finish_stage (bool coarse_side, std::string &diagnostic) |
| bool | accept_level_step (bool coarse_side, double step_begin, double step_end, std::string &diagnostic) |
| bool | ready_to_reflux () const noexcept |
| bool | has_outstanding_amount () const noexcept |
| double | minimum_fine_dt () const noexcept |
| std::uint64_t | reflux_call_count () const noexcept |
| std::uint64_t | reflux_sync_count () const noexcept |
| const amrex::MultiFab & | covered_parent_mask () const noexcept |
| bool | reflux (amrex::MultiFab &mapped_candidate, std::string &diagnostic) |
| bool | reflux_components (amrex::MultiFab &mapped_correction, const std::vector< int > &global_components, std::string &diagnostic) |
| bool | can_accept_reflux (std::string &diagnostic) const |
| bool | accept_reflux (std::string &diagnostic) |
| bool | discard_interval (std::string &diagnostic) |
Private Member Functions | |
| int | stage_count (erf_auxiliary::HostIntegrator method) const noexcept |
| void | reset_side (SideState &side) const |
| bool | collective_check (bool local_ok, const std::string &local_diagnostic, const char *remote_diagnostic, std::string &diagnostic) const |
Private Attributes | |
| std::unique_ptr< amrex::YAFluxRegister > | m_register |
| amrex::MultiFab | m_covered_parent_mask |
| amrex::BoxArray | m_fine_ba |
| amrex::BoxArray | m_coarse_ba |
| amrex::DistributionMapping | m_fine_dm |
| amrex::DistributionMapping | m_coarse_dm |
| amrex::Geometry | m_fine_geom |
| amrex::Geometry | m_coarse_geom |
| amrex::IntVect | m_ratio {1} |
| int | m_fine_level {0} |
| int | m_ncomp {0} |
| bool | m_interval_active {false} |
| bool | m_coarse_step_accepted {false} |
| bool | m_reflux_applied {false} |
| std::vector< unsigned char > | m_reflux_components_seen |
| bool | m_consumed {true} |
| double | m_interval_begin {0.0} |
| double | m_interval_end {0.0} |
| double | m_min_fine_dt {0.0} |
| int | m_expected_fine_steps {0} |
| int | m_accepted_fine_steps {0} |
| std::uint64_t | m_reflux_call_count {0} |
| std::uint64_t | m_reflux_sync_count {0} |
| SideState | m_coarse |
| SideState | m_fine |
Transactional owner for one SBM coarse/fine interface.
Accepted chunk-local mapped stage rates are added directly to YA using the stage's completed-step time coefficient. The register is only refluxable after the coarse step and every expected fine substep have been accepted. The authoritative spectrum and the mapped candidate remain externally owned.
|
default |
|
delete |
| bool erf_sbm::SBMAMRFluxRegister::accept_level_step | ( | bool | coarse_side, |
| double | step_begin, | ||
| double | step_end, | ||
| std::string & | diagnostic | ||
| ) |

| bool erf_sbm::SBMAMRFluxRegister::accept_reflux | ( | std::string & | diagnostic | ) |
Consume the pending amount only after the refluxed full candidate admits.

| bool erf_sbm::SBMAMRFluxRegister::add_stage_rates | ( | bool | coarse_side, |
| const erf_auxiliary::MappedFaceFluxRate & | accepted_rate, | ||
| const std::vector< int > & | register_components, | ||
| double | completed_ledger_time, | ||
| std::string & | diagnostic | ||
| ) |

| bool erf_sbm::SBMAMRFluxRegister::begin_interval | ( | double | coarse_begin, |
| double | coarse_end, | ||
| int | expected_fine_steps, | ||
| std::string & | diagnostic | ||
| ) |

| bool erf_sbm::SBMAMRFluxRegister::begin_level_step | ( | bool | coarse_side, |
| double | step_begin, | ||
| double | step_end, | ||
| std::string & | diagnostic | ||
| ) |

| bool erf_sbm::SBMAMRFluxRegister::begin_stage | ( | bool | coarse_side, |
| erf_auxiliary::HostIntegrator | method, | ||
| int | stage, | ||
| double | step_begin, | ||
| std::string & | diagnostic | ||
| ) |

| bool erf_sbm::SBMAMRFluxRegister::can_accept_reflux | ( | std::string & | diagnostic | ) | const |
Referenced by accept_reflux().


| void erf_sbm::SBMAMRFluxRegister::clear | ( | ) |
Referenced by define().

|
private |
Referenced by accept_level_step(), add_stage_rates(), begin_interval(), begin_level_step(), begin_stage(), can_accept_reflux(), discard_interval(), finish_stage(), reflux(), and reflux_components().

|
inlinenoexcept |
Coarse cells covered by the fine level (1) or not (0), one periodic ghost.
| void erf_sbm::SBMAMRFluxRegister::define | ( | const amrex::BoxArray & | fine_ba, |
| const amrex::BoxArray & | coarse_ba, | ||
| const amrex::DistributionMapping & | fine_dm, | ||
| const amrex::DistributionMapping & | coarse_dm, | ||
| const amrex::Geometry & | fine_geom, | ||
| const amrex::Geometry & | coarse_geom, | ||
| const amrex::IntVect & | ratio, | ||
| int | fine_level, | ||
| int | ncomp | ||
| ) |

| bool erf_sbm::SBMAMRFluxRegister::discard_interval | ( | std::string & | diagnostic | ) |
Drop a rejected private candidate and its unpublishable interval.

| bool erf_sbm::SBMAMRFluxRegister::finish_stage | ( | bool | coarse_side, |
| std::string & | diagnostic | ||
| ) |

|
noexcept |
|
inlinenoexcept |
Actual smallest physical timestep represented by the active interval.
|
delete |
|
noexcept |
Referenced by can_accept_reflux(), reflux(), and reflux_components().

| bool erf_sbm::SBMAMRFluxRegister::reflux | ( | amrex::MultiFab & | mapped_candidate, |
| std::string & | diagnostic | ||
| ) |

|
inlinenoexcept |
| bool erf_sbm::SBMAMRFluxRegister::reflux_components | ( | amrex::MultiFab & | mapped_correction, |
| const std::vector< int > & | global_components, | ||
| std::string & | diagnostic | ||
| ) |
Apply selected global components into matching local slots of a bounded correction MultiFab; all components must be covered before the pending amount can be consumed.

|
inlinenoexcept |
|
private |
Referenced by accept_reflux(), begin_interval(), define(), and discard_interval().

|
privatenoexcept |
Referenced by accept_level_step(), and begin_stage().


|
private |
Referenced by accept_level_step(), accept_reflux(), begin_interval(), begin_level_step(), clear(), discard_interval(), and ready_to_reflux().
|
private |
|
private |
Referenced by add_stage_rates(), clear(), define(), reflux(), and reflux_components().
|
private |
Referenced by add_stage_rates(), clear(), define(), reflux(), and reflux_components().
|
private |
Referenced by add_stage_rates(), clear(), and define().
|
private |
Referenced by accept_level_step(), accept_reflux(), begin_interval(), begin_level_step(), clear(), discard_interval(), and ready_to_reflux().
|
private |
Referenced by accept_reflux(), begin_interval(), begin_level_step(), clear(), discard_interval(), has_outstanding_amount(), and ready_to_reflux().
|
private |
Referenced by clear(), covered_parent_mask(), and define().
|
private |
Referenced by accept_level_step(), begin_interval(), begin_level_step(), clear(), and ready_to_reflux().
|
private |
|
private |
Referenced by add_stage_rates(), clear(), and define().
|
private |
Referenced by add_stage_rates(), clear(), and define().
|
private |
Referenced by add_stage_rates(), clear(), and define().
|
private |
Referenced by accept_reflux(), begin_interval(), begin_level_step(), begin_stage(), clear(), discard_interval(), has_outstanding_amount(), and ready_to_reflux().
|
private |
Referenced by accept_level_step(), begin_interval(), begin_level_step(), and clear().
|
private |
Referenced by accept_level_step(), begin_interval(), begin_level_step(), and clear().
|
private |
Referenced by accept_level_step(), accept_reflux(), begin_interval(), begin_level_step(), begin_stage(), clear(), discard_interval(), and minimum_fine_dt().
|
private |
Referenced by add_stage_rates(), begin_level_step(), begin_stage(), clear(), define(), reflux(), reflux_components(), and reset_side().
|
private |
|
private |
Referenced by accept_reflux(), begin_interval(), can_accept_reflux(), clear(), discard_interval(), reflux(), and reflux_components().
|
private |
Referenced by begin_interval(), clear(), reflux_call_count(), and reflux_components().
|
private |
Referenced by accept_reflux(), begin_interval(), can_accept_reflux(), clear(), define(), discard_interval(), reflux(), and reflux_components().
|
private |
Referenced by begin_interval(), clear(), reflux_components(), and reflux_sync_count().
|
private |
Referenced by accept_reflux(), add_stage_rates(), begin_interval(), clear(), define(), discard_interval(), reflux(), and reflux_components().