|
Mallard 0.8.0
Unstructured, GPU accelerated, high-order finite volume CFD solver
Mallard website |
Three-stage, third-order strong-stability-preserving Runge-Kutta (Shu & Osher 1988). More...
#include <time_integrator.h>
Public Member Functions | |
| SSPRK3 () | |
| void | take_step (const rtype t, const rtype dt, std::vector< State > &solution_vec, std::vector< State > &rhs_vec, const RHSFunction &calc_rhs, const rtype *dt_device=nullptr) override |
| Advance solution_vec[0] from time t by dt. | |
Public Member Functions inherited from TimeIntegrator | |
| virtual | ~TimeIntegrator ()=default |
| TimeIntegratorType | get_type () const |
| uint8_t | get_n_solution_vectors () const |
| uint8_t | get_n_rhs_vectors () const |
Additional Inherited Members | |
Protected Attributes inherited from TimeIntegrator | |
| TimeIntegratorType | type |
| uint8_t | n_solution_vectors |
| uint8_t | n_rhs_vectors |
Three-stage, third-order strong-stability-preserving Runge-Kutta (Shu & Osher 1988).
| SSPRK3::SSPRK3 | ( | ) |
|
overridevirtual |
Advance solution_vec[0] from time t by dt.
| t | Time at the start of the step. |
| dt | Time step. |
| solution_vec | Solution (index 0) and scratch states. |
| rhs_vec | Scratch RHS states. |
| calc_rhs | RHS evaluator, dU/dt = calc_rhs(U, t). |
| dt_device | Device array of dt's multiples (see dt_scales), which the updates read instead of dt when given. |
Implements TimeIntegrator.