#include <ODERelax.h>
Public Member Functions | |
ODERelax (const GrrProperties &props) throw (RelaxationException&) | |
Constructs the ODE solver. | |
ODERelax (const GrrProperties &props, int maxi) throw (RelaxationException&) | |
Constructs the ODE solver. | |
ODERelax (ODE *ode, tvalarray< GReal_t > &data, int order) throw (RelaxationException&) | |
Constructs the ODE solver. | |
ODE & | getODE () const |
Gets the ODE. | |
int | getMaxI () |
Gets the grid size. | |
string | getDataFormat () |
Gets the output data format. | |
double | getRelativeError () |
Gets the relative error of the solution after the final iteration. | |
int | getNumIterations () |
Gets the number of iterations. | |
void | setNumIterations (int n) |
Sets the number of iterations. | |
void | solve (tvalarray< GReal_t > &sol) throw (RelaxationException&) |
Solves the system of equation. | |
double | nextIteration () throw (RelaxationException&) |
Performs the next iteration. | |
Classes | |
class | Method |
Abstract class of relaxation method matrix initializers. More... | |
class | RelaxationException |
Relaxation error. More... |
gridripper::odesolver::relax::ODERelax::ODERelax | ( | const GrrProperties & | props | ) | throw (RelaxationException&) |
gridripper::odesolver::relax::ODERelax::ODERelax | ( | const GrrProperties & | props, | |
int | maxi | |||
) | throw (RelaxationException&) |
gridripper::odesolver::relax::ODERelax::ODERelax | ( | ODE * | ode, | |
tvalarray< GReal_t > & | data, | |||
int | order | |||
) | throw (RelaxationException&) |
ODE& gridripper::odesolver::relax::ODERelax::getODE | ( | ) | const [inline] |
int gridripper::odesolver::relax::ODERelax::getMaxI | ( | ) | [inline] |
Gets the grid size.
string gridripper::odesolver::relax::ODERelax::getDataFormat | ( | ) | [inline] |
Gets the output data format.
double gridripper::odesolver::relax::ODERelax::getRelativeError | ( | ) | [inline] |
Gets the relative error of the solution after the final iteration.
int gridripper::odesolver::relax::ODERelax::getNumIterations | ( | ) | [inline] |
Gets the number of iterations.
void gridripper::odesolver::relax::ODERelax::setNumIterations | ( | int | n | ) | [inline] |
Sets the number of iterations.
n | number of iterations or -1 to stop only when the relative error cannot be decreased further |
void gridripper::odesolver::relax::ODERelax::solve | ( | tvalarray< GReal_t > & | sol | ) | throw (RelaxationException&) |
Solves the system of equation.
sol | output vector for the solution |
double gridripper::odesolver::relax::ODERelax::nextIteration | ( | ) | throw (RelaxationException&) |
Performs the next iteration.
Called by solve.