File euler.hxx

class EulerSolver : public Solver

Public Functions

EulerSolver(Options *options)
void setMaxTimestep(BoutReal dt)

Set a maximum internal timestep (only for explicit schemes)

BoutReal getCurrentTimestep()

Return the current internal timestep.

int init(int nout, BoutReal tstep)

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

int run()

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

int mxstep
BoutReal cfl_factor
Array<BoutReal> f0
Array<BoutReal> f1
BoutReal out_timestep
int nsteps
BoutReal timestep
bool timestep_reduced
int nlocal