File rk3-ssp.hxx

class RK3SSP : public Solver

Public Functions

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

Set a maximum internal timestep (only for explicit schemes)

inline virtual BoutReal getCurrentTimestep() override

Return the current internal timestep.

virtual int init(int nout, BoutReal tstep) override

Initialise the solver NOTE: nout and tstep should be passed to run, not init. Needed because of how the PETSc TS code works

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)

Private Members

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