|
|
|
|
|
By default GetDP uses linear solvers from [PETSc](https://www.mcs.anl.gov/petsc). (You can also compile GetDP with alternative linear solvers - see the [GetDP documentation](http://getdp.info/doc/texinfo/getdp.html#Compiling-the-source-code).)
|
|
|
|
|
|
The choice of which particular linear solver to use for a given problem is handled directly through PETSc options, which can be specified:
|
|
|
By default GetDP uses linear solvers from [PETSc](https://www.mcs.anl.gov/petsc). (You can also compile GetDP with alternative linear solvers - see the [GetDP documentation](http://getdp.info/doc/texinfo/getdp.html#Compiling-the-source-code).) The choice of which particular linear solver to use for a given problem is handled directly through PETSc options, which can be specified:
|
|
|
* on the command line (e.g. `getdp test.pro -solve -ksp_type cg -pc_type ilu`)
|
|
|
* in the `Resolution` operations, with the `SetGlobalSolverOptions[]` function (e.g. `SetGlobalSolverOptions["-ksp_type gmres -petsc_prealloc 400"];`)
|
|
|
* in a file :
|
... | ... | |