Hello,<div><br></div><div>I have a (hopefully) quick question about setting the restart for gmres.</div><div><br></div><div>I set the restart to be 50, but when I use KSPView it looks like GMRES</div><div>still uses a restart of 30. It is possible that I overwrite my settings </div>
<div>somehow? Here is the relevant part of my code:</div><div><br></div><div>KSPCreate(PETSC_COMM_WORLD,&ksp);</div><div>KSPSetOperators(ksp,A,A,DIFFERENT_NONZERO_PATTERN);</div><div>KSPGMRESSetRestart(ksp,50);</div><div>
KSPSetInitialGuessNonzero(ksp,PETSC_TRUE);</div><div>KSPSetTolerances(ksp,1.e-12,1.e-12,PETSC_DEFAULT,100000);</div><div>KSPSetUp(ksp);</div><div>KSPGetPC(ksp,&pc);</div><div>PCSetType(pc,PCNONE);</div><div>KSPView(ksp,PETSC_VIEWER_STDOUT_WORLD);</div>
<div>KSPSolve(ksp,b,x);</div><div><br></div><div><br></div><div>Thanks,</div><div>Verena</div>