Second order relaxation method. More...
#include <O2Relax.h>
Public Member Functions | |
O2Relax (ODE *ode, int nx) throw (ODERelax::RelaxationException&) | |
Constructs the object. | |
int | getNumSubsteps () const |
void | set (tvalarray< GReal_t > &fieldValues, tvalarray< GReal_t > &matrix, tvalarray< GReal_t > &rhsvec, const tvalarray< GReal_t > &deltaField) |
Sets the coefficient matrix and the RHS of the linear system of equations. |
Second order relaxation method.
gridripper::odesolver::relax::O2Relax::O2Relax | ( | ODE * | ode, | |
int | nx | |||
) | throw (ODERelax::RelaxationException&) |
Constructs the object.
ode | the ODE | |
nx | the mesh size (number of subdivisions) |
void gridripper::odesolver::relax::O2Relax::set | ( | tvalarray< GReal_t > & | fieldValues, | |
tvalarray< GReal_t > & | matrix, | |||
tvalarray< GReal_t > & | rhsvec, | |||
const tvalarray< GReal_t > & | deltaField | |||
) | [virtual] |
Sets the coefficient matrix and the RHS of the linear system of equations.
fieldValues | array of field values | |
matrix | output array for the coefficient matrix | |
rhsvec | output array for the RHS | |
deltaField | array of "small" differences for the numerical differentiation of the ODE's RHS with respect to the fields |
Implements gridripper::odesolver::relax::ODERelax::Method.