fixed: gmres reset iterations is not the same as solver restarts
issue was inherited from old petsc code
This commit is contained in:
parent
9f37960e86
commit
d380c1d36c
@ -500,8 +500,8 @@ bool PETScMatrix::solve (const SystemVector& b, SystemVector& x, bool newLHS)
|
||||
bool PETScMatrix::solve (const Vec& b, Vec& x, bool newLHS, bool knoll)
|
||||
{
|
||||
// Reset linear solver
|
||||
if (nLinSolves && solParams.getIntValue("gmres_restart_iterations"))
|
||||
if (nLinSolves%solParams.getIntValue("gmres_restart_iterations") == 0) {
|
||||
if (nLinSolves && solParams.getIntValue("reset_solves"))
|
||||
if (nLinSolves%solParams.getIntValue("reset_solves") == 0) {
|
||||
KSPDestroy(&ksp);
|
||||
KSPCreate(*adm.getCommunicator(),&ksp);
|
||||
setParams = true;
|
||||
|
Loading…
Reference in New Issue
Block a user