<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 style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">But I already had another preconditioner. I want to study the behave of the smooth method in the GMRES with my preconditioner. How can I do?</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"> Thanks!</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">-------------------------------------------------------------<BR><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- 原始邮件 ----<BR>发件人: Barry Smith <bsmith@mcs.anl.gov><BR>收件人: petsc-users@mcs.anl.gov<BR>已发送: 2007/1/28(周日), 上午11:28:35<BR>主题: Re: about combining the GMRES and smooth methods<BR><BR>
<DIV>It seems extremely likely that you do not want to do this.<BR><BR> If you want to use SOR or SSOR as a preconditioner for GMRES simply<BR>use -pc_type sor; see the manual page for PCSOR for other options.<BR><BR> Barry<BR><BR><BR>On Sun, 28 Jan 2007, jiaxun hou wrote:<BR><BR>> Hi, <BR>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:<BR><BR>PetscErrorCode KSPSolve_GMRES(KSP ksp) {<BR>.....<BR> ierr = GMREScycle(&its,ksp);CHKERRQ(ierr);<BR> <BR> ierr = MatRelax(ksp->pc->mat, ksp->vec_rhs,1,SOR_FORWARD_SWEEP,0,1,1,ksp->vec_sol);CHKERRQ(ierr);<BR>.....<BR>}<BR><BR>But compile fail. Is it the right way?
<BR>Thanks.<BR><BR><BR> <BR>___________________________________________________________ <BR>雅虎免费邮箱-3.5G容量,20M附件 <BR><A href="http://cn.mail.yahoo.com/" target=_blank>http://cn.mail.yahoo.com/</A></DIV></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR></DIV></div><br>
                <hr size=1><a href="http://music.yahoo.com.cn/?source=mail_mailbox_footer" target=blank>
Mp3疯狂搜-新歌热歌高速下
</a>
</body></html>