A configuration class holding options for use within the different linear solvers. More...
#include <config.hpp>
Public Member Functions | |
nonlinear_solver_config () | |
long | id () const |
Returns the current linear solver ID. More... | |
void | set (long solver_id) |
Sets a new linear solver. Provide IDs defined in. More... | |
void | set (std::string solver_name) |
Sets a new nonlinear solver. More... | |
double | tolerance () const |
Returns the tolerance for the nonlinear solver potential update. More... | |
void | tolerance (double tol) |
Sets the tolerance for the nonlinear solver potential update. Non-positive values are ignored. More... | |
std::size_t | max_iters () const |
Returns the maximum number of nonlinear solver iterations. More... | |
void | max_iters (std::size_t iters) |
Sets the maximum number of iterations within the nonlinear solver. More... | |
double | damping () const |
Returns the damping for the nonlinear solver. More... | |
void | damping (double d) |
Sets the tolerance for the nonlinear solver. Negative values are ignored. More... | |
void | operator++ (int) |
Increment the Number of Iterations for the nonlinear solver. More... | |
long | getThreshold () const |
void | setThreshold (long threshold) |
Additional Inherited Members | |
Public Types inherited from viennashe::solvers::nonlinear_solver_ids | |
enum | { gummel_nonlinear_solver , newton_nonlinear_solver } |
A configuration class holding options for use within the different linear solvers.
Internal note: May require a bit more polishing, particularly with respect to preconditioners
Definition at line 252 of file config.hpp.
|
inline |
Definition at line 255 of file config.hpp.
|
inline |
Returns the damping for the nonlinear solver.
Definition at line 328 of file config.hpp.
|
inline |
Sets the tolerance for the nonlinear solver. Negative values are ignored.
Definition at line 333 of file config.hpp.
|
inline |
Definition at line 346 of file config.hpp.
|
inline |
Returns the current linear solver ID.
Definition at line 262 of file config.hpp.
|
inline |
Returns the maximum number of nonlinear solver iterations.
Definition at line 317 of file config.hpp.
|
inline |
Sets the maximum number of iterations within the nonlinear solver.
Definition at line 322 of file config.hpp.
|
inline |
Increment the Number of Iterations for the nonlinear solver.
Definition at line 341 of file config.hpp.
|
inline |
Sets a new linear solver. Provide IDs defined in.
Definition at line 270 of file config.hpp.
|
inline |
Sets a new nonlinear solver.
Definition at line 284 of file config.hpp.
|
inline |
Definition at line 351 of file config.hpp.
|
inline |
Returns the tolerance for the nonlinear solver potential update.
Definition at line 305 of file config.hpp.
|
inline |
Sets the tolerance for the nonlinear solver potential update. Non-positive values are ignored.
Definition at line 310 of file config.hpp.