File numerics/src/tools/SolverOptions_helpers.h

Go to the source code of this file

Helper functions for setting common solver options.

Functions

static int SN_get_max_iters(int *iparam)

get the number of iterations

Return

the maximum number of iterations

Parameters
  • iparam: the set of integer parameters

static int SN_get_nb_iters(int *iparam)

get the number of iterations

Return

the number of iterations done in the solver

Parameters
  • iparam: the set of double parameters

static double SN_get_residual(double *dparam)

get the residual

Return

the residual

Parameters
  • dparam: the set of double parameters

static double SN_get_tolerance(double *dparam)

get the tolerance for the solver

Return

tol the tolerance

Parameters
  • dparam: the set of double parameters

static void SN_set_max_iters(int *iparam, int max_iters)

set the maximum number of iterations

Parameters
  • iparam: the set of integer parameters

  • max_iters: the new tolerance

static void SN_set_nb_iters(int *iparam, int nb_iters)

set the number of iterations done in the solver

Parameters
  • iparam: the set of integer parameters

  • nb_iters: the new tolerance

static void SN_set_residual(double *dparam, double res)

set the residual from the solver

Parameters
  • dparam: the set of double parameters

  • res: the new tolerance

static void SN_set_tolerance(double *dparam, double tol)

set the tolerance for the solver

Parameters
  • dparam: the set of double parameters

  • tol: the new tolerance