about combining the GMRES and smooth methods

jiaxun hou jiaxun_hou at yahoo.com.cn
Sat Jan 27 21:07:42 CST 2007


Hi, 
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:

PetscErrorCode KSPSolve_GMRES(KSP ksp) {
.....
     ierr = GMREScycle(&its,ksp);CHKERRQ(ierr);
     
     ierr = MatRelax(ksp->pc->mat, ksp->vec_rhs,1,SOR_FORWARD_SWEEP,0,1,1,ksp->vec_sol);CHKERRQ(ierr);
.....
}

But  compile fail. Is it the right way? 
Thanks.


		
___________________________________________________________ 
雅虎免费邮箱-3.5G容量,20M附件 
http://cn.mail.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20070128/dcc6166a/attachment.htm>


More information about the petsc-users mailing list