mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Sets initial guess to zero.
Setting it to nonzero means starting to approximate from memory garbage values.
This commit is contained in:
@@ -201,7 +201,7 @@ namespace{
|
|||||||
CHKERRXX( err );
|
CHKERRXX( err );
|
||||||
err = KSPSetFromOptions( t.ksp );
|
err = KSPSetFromOptions( t.ksp );
|
||||||
CHKERRXX( err );
|
CHKERRXX( err );
|
||||||
KSPSetInitialGuessNonzero( t.ksp, PETSC_TRUE );
|
KSPSetInitialGuessNonzero( t.ksp, PETSC_FALSE );
|
||||||
KSPSolve( t.ksp, t.x, t.b );
|
KSPSolve( t.ksp, t.x, t.b );
|
||||||
KSPGetConvergedReason( t.ksp, &reason );
|
KSPGetConvergedReason( t.ksp, &reason );
|
||||||
KSPGetIterationNumber( t.ksp, &its );
|
KSPGetIterationNumber( t.ksp, &its );
|
||||||
|
|||||||
Reference in New Issue
Block a user