Go to the documentation of this file.
14 #ifndef SOLVER_CG_INCLUDED
15 #define SOLVER_CG_INCLUDED
83 void set_parameters(
const int Niter,
const int Nrestart,
const double Stop_cond);
85 void set_parameters(
const int Niter,
const int Nrestart,
const double Stop_cond,
const bool use_init_guess);
89 void solve(
Field& solution,
const Field& source,
int& Nconv,
double& diff);
114 static bool register_factory()
117 init &= Solver::Factory::Register(
"CG", create_object);
118 init &= Solver::Factory_params::Register(
"CG", create_object_with_params);
Common parameter class: provides parameters as singleton.
Bridge::VerboseLevel m_vl
Solver_CG(Fopr *fopr, const Parameters ¶ms)
void reset_field(const Field &)
void get_parameters(Parameters ¶ms) const
void solve(Field &solution, const Field &source, int &Nconv, double &diff)
Base class for linear solver class family.
static const std::string class_name
void solve_init(const Field &, double &)
void set_parameters(const Parameters ¶ms)
void solve_step(double &)
Standard Conjugate Gradient solver algorithm.
Container of Field-type object.