SpECTRE  2021.08.02
StepControllers::SimpleTimes Class Reference

A StepController that roughly splits the remaining time, but prefers simpler (smaller denominator) fractions of slabs. More...

#include <SimpleTimes.hpp>

Public Types

using options = tmpl::list<>
 

Public Member Functions

TimeDelta choose_step (const Time &time, const double desired_step) const noexcept override
 

Static Public Attributes

static constexpr Options::String help
 

Detailed Description

A StepController that roughly splits the remaining time, but prefers simpler (smaller denominator) fractions of slabs.

Member Function Documentation

◆ choose_step()

TimeDelta StepControllers::SimpleTimes::choose_step ( const Time time,
const double  desired_step 
) const
inlineoverridevirtualnoexcept

Implements StepController.

Member Data Documentation

◆ help

constexpr Options::String StepControllers::SimpleTimes::help
staticconstexpr
Initial value:
= {
"Chooses steps by dividing the remainder of the slab approximately\n"
"evenly, but preferring evaluation times that are simple (i.e., small\n"
"denominator) fractions of the slab."}