mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-26 03:00:17 -06:00
Sets initial guess to zero.
Setting it to nonzero means starting to approximate from memory garbage values.
This commit is contained in:
parent
294ec58bed
commit
263e1a6928
@ -201,7 +201,7 @@ namespace{
|
||||
CHKERRXX( err );
|
||||
err = KSPSetFromOptions( t.ksp );
|
||||
CHKERRXX( err );
|
||||
KSPSetInitialGuessNonzero( t.ksp, PETSC_TRUE );
|
||||
KSPSetInitialGuessNonzero( t.ksp, PETSC_FALSE );
|
||||
KSPSolve( t.ksp, t.x, t.b );
|
||||
KSPGetConvergedReason( t.ksp, &reason );
|
||||
KSPGetIterationNumber( t.ksp, &its );
|
||||
|
Loading…
Reference in New Issue
Block a user