Sets initial guess to zero.

Setting it to nonzero means starting to approximate from memory garbage values.
This commit is contained in:
Jørgen Kvalsvik 2014-12-10 18:15:33 +01:00
parent 294ec58bed
commit 263e1a6928

View File

@ -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 );