<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Hi, </DIV>
<DIV>I want to add a smooth method in the GMRES routine. I do it in the function KSPSolve_GMRES of /src/ksp/ksp/impls/gmres/gmres.c. The code likes that:</DIV>
<DIV> </DIV>
<DIV>PetscErrorCode KSPSolve_GMRES(KSP ksp) {</DIV>
<DIV>.....</DIV>
<DIV> ierr = GMREScycle(&its,ksp);CHKERRQ(ierr);</DIV>
<DIV> </DIV>
<DIV> ierr = MatRelax(ksp->pc->mat, ksp->vec_rhs,1,SOR_FORWARD_SWEEP,0,1,1,ksp->vec_sol);CHKERRQ(ierr);</DIV>
<DIV>.....</DIV>
<DIV>}</DIV>
<DIV> </DIV>
<DIV>But compile fail. Is it the right way? </DIV>
<DIV>Thanks.</DIV>
<DIV> </DIV></div><br>
                <hr size=1><a href="http://music.yahoo.com.cn/?source=mail_mailbox_footer" target=blank>
Mp3疯狂搜-新歌热歌高速下
</a>
</body></html>