Skip to content
Snippets Groups Projects
Commit 2075a167 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Plug PETSc (and various classic solvers and preconditioners)

The 'LinearSolver' class proposes mechanism to choose the used
- library,
- method, and
- preconditioner
Also one can adjust the required convergence epsilon, the maximum
number of iterations and the verbosity.

All of these options can be listed through the 'pgs' script using the
'printLSAvailable()' builtin function.

One drive the linear system solver by changing values in the
script. For instance:
	setLSVerbosity(true);
	setLSEpsilon(1E-9);
	setLSMaxIter(1000);
	setLSLibrary("PETSc");
	setLSMethod("LU");
	setLSPrecond("none");

Finally one can print the current options by using the
'printLSOptions()' function.
parent d0a1f35c
Branches
Tags
1 merge request!55Feature/petsc
Showing
with 815 additions and 58 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment