|
SpECTRE
v2026.04.01
|
Items related to checking the convergence of numerical algorithms. More...
Namespaces | |
| namespace | OptionTags |
| Option tags related to the convergence of iterative algorithms. | |
| namespace | Tags |
| Tags related to the convergence of iterative algorithms. | |
Classes | |
| struct | Criteria |
| Criteria that determine an iterative algorithm has converged. More... | |
| struct | HasConverged |
| Signals convergence or termination of the algorithm. More... | |
Enumerations | |
| enum class | Reason { NumIterations , MaxIterations , AbsoluteResidual , RelativeResidual , Error } |
| The reason the algorithm has converged or terminated. More... | |
Functions | |
| bool | operator== (const Criteria &lhs, const Criteria &rhs) |
| bool | operator!= (const Criteria &lhs, const Criteria &rhs) |
| std::optional< Reason > | criteria_match (const Criteria &criteria, size_t iteration_id, double residual_magnitude, double initial_residual_magnitude) |
| Determine whether the criteria are met. | |
| std::ostream & | operator<< (std::ostream &os, const Reason &reason) |
Items related to checking the convergence of numerical algorithms.
|
strong |
The reason the algorithm has converged or terminated.
| std::optional< Reason > Convergence::criteria_match | ( | const Criteria & | criteria, |
| size_t | iteration_id, | ||
| double | residual_magnitude, | ||
| double | initial_residual_magnitude ) |
Determine whether the criteria are met.
Returns: A Convergence::Reason if the criteria are met, or std::nullopt otherwise. The possible convergence reasons are: