Requests a slab size based on the desired step in regions with a fixed slab fraction.
More...
#include <FixedLtsRatio.hpp>
|
| FixedLtsRatio (std::vector< std::unique_ptr<::StepChooser< StepChooserUse::LtsStep > > > step_choosers) |
|
template<typename DbTags > |
std::pair< TimeStepRequest, bool > | operator() (const db::DataBox< DbTags > &box, const double) const |
|
bool | uses_local_data () const override |
| Whether the result can differ on different elements, so requiring communication to synchronize the result across the domain. This is ignored for LTS step changing. More...
|
|
bool | can_be_delayed () const override |
| Whether the result can be applied with a delay. More...
|
|
void | pup (PUP::er &p) override |
|
| WRAPPED_PUPable_abstract (StepChooser) |
|
virtual bool | uses_local_data () const=0 |
| Whether the result can differ on different elements, so requiring communication to synchronize the result across the domain. This is ignored for LTS step changing. More...
|
|
virtual bool | can_be_delayed () const=0 |
| Whether the result can be applied with a delay. More...
|
|
std::pair< TimeStepRequest, bool > | desired_step (const double last_step, const db::DataBox< DbTags > &box) const |
| The last_step parameter describes the step size to be adjusted. It may be the step size or the slab size, or may be infinite if the appropriate size cannot be determined. More...
|
|
Requests a slab size based on the desired step in regions with a fixed slab fraction.
- Note
- This StepChooser is not included in the
standard_step_choosers
list. Executables using the feature must include it explicitly in the factory_creation
struct and add the Tags::FixedLtsRatio
tag to the element DataBox.
◆ can_be_delayed()
bool StepChoosers::FixedLtsRatio::can_be_delayed |
( |
| ) |
const |
|
overridevirtual |
◆ uses_local_data()
bool StepChoosers::FixedLtsRatio::uses_local_data |
( |
| ) |
const |
|
overridevirtual |
Whether the result can differ on different elements, so requiring communication to synchronize the result across the domain. This is ignored for LTS step changing.
- Note
- As this is only used for slab-size changing, the
last_step
passed to the call operator is not considered local data.
Implements StepChooser< StepChooserUse::Slab >.
◆ help
Initial value:{
"Requests a slab size based on the desired step in regions with a fixed "
"slab fraction."}
The documentation for this class was generated from the following file:
- src/Time/StepChoosers/FixedLtsRatio.hpp