File power.hxx

class PowerSolver : public Solver

Public Functions

inline PowerSolver()
inline PowerSolver(Options*)
inline ~PowerSolver()
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.

inline virtual void outputVars(Datafile &outputfile, bool save_repeat = true) override

Add evolving variables to output (dump) file or restart file

  • [inout] outputfile: The file to add variable to

  • [in] save_repeat: If true, add variables with time dimension

Private Functions

BoutReal norm(Array<BoutReal> &state)
void divide(Array<BoutReal> &in, BoutReal value)

Private Members

BoutReal curtime
BoutReal eigenvalue
int nlocal
int nglobal
Array<BoutReal> f0
int nsteps