File rk3-ssp.hxx#

class RK3SSP : public Solver#

Public Functions

explicit RK3SSP(Options *opt = nullptr)#
~RK3SSP() = default#
void setMaxTimestep(BoutReal dt) override#
inline virtual BoutReal getCurrentTimestep() override#

Return the current internal timestep.

virtual int init() override#

Initialise the solver.

virtual int run() override#

Run the solver, calling monitors nout times, at intervals of tstep. This function is called by solve(), and is specific to each solver type

This should probably be protected, since it shouldn’t be called by users.

Private Functions

void take_step(BoutReal curtime, BoutReal dt, Array<BoutReal> &start, Array<BoutReal> &result)#

Take a single step to calculate f1.

Private Members

BoutReal max_timestep#
BoutReal timestep#
int mxstep#
Array<BoutReal> f#
int nlocal#
int neq#
Array<BoutReal> u1#
Array<BoutReal> u2#
Array<BoutReal> u3#
Array<BoutReal> L#