SpECTRE  v2025.08.19
StepperErrorEstimate Struct Reference

Estimate of the TimeStepper truncation error. More...

#include <StepperErrorEstimate.hpp>

Public Member Functions

 StepperErrorEstimate (Time step_time_in, TimeDelta step_size_in, size_t order_in, double step_error_in)
 
double step_error () const
 Convenience accessor for errors[order].value().
 
void pup (PUP::er &p)
 

Public Attributes

Time step_time {}
 Start of the step the estimate is for.
 
TimeDelta step_size {}
 Size of the step the estimate is for.
 
size_t order {}
 Order of accuracy of the primary estimate.
 
std::array< std::optional< double >, 8 > errors {}
 Error estimates. The entry errors[order], with order the previous member of this struct, is the estimated error of the time step, and has a convenience accessor step_error(). Other entries are estimations of the error if the order of a variable-order stepper were to be changed. The error errors[i] should scale approximately as \((\Delta t)^{i + 1}\).
 

Detailed Description

Estimate of the TimeStepper truncation error.


The documentation for this struct was generated from the following file: