SpECTRE  2021.08.02
StepChooser< StepChooserUse::Slab > Class Reference

Public Member Functions

 WRAPPED_PUPable_abstract (StepChooser)
 
template<typename Metavariables , typename DbTags >
double desired_slab (const double last_step_magnitude, const db::DataBox< DbTags > &box, const Parallel::GlobalCache< Metavariables > &cache) const noexcept
 The last_step_magnitude parameter describes the slab size to be adjusted; It may be infinite if the appropriate size cannot be determined. More...
 

Member Function Documentation

◆ desired_slab()

template<typename Metavariables , typename DbTags >
double StepChooser< StepChooserUse::Slab >::desired_slab ( const double  last_step_magnitude,
const db::DataBox< DbTags > &  box,
const Parallel::GlobalCache< Metavariables > &  cache 
) const
inlinenoexcept

The last_step_magnitude parameter describes the slab size to be adjusted; It may be infinite if the appropriate size cannot be determined.

As opposed to the decision made by desired_step in the StepChooser<StepChooserUse::LtsStep> specialization, the slab change decision must be callable from an event (so cannot store state information in the DataBox), and we do not have the capability to reject a slab so this function returns only a double indicating the desired slab size.