On Tue, Jan 17, 2012 at 2:51 PM, Xuefei (Rebecca) Yuan <span dir="ltr"><<a href="mailto:xyuan@lbl.gov">xyuan@lbl.gov</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello all,<br>
<br>
I have a piece of code that need to store the RHS vector b of the ksp object via vecview.<br>
<br>
However, the routine is like:<br>
<br>
<br>
ierr = DMMGSetSNESLocal(dmmg, FormFunctionLocal, FormJacobianLocal,0,0);CHKERRQ(ierr);<br>
ierr = DMMGSolve(dmmg);CHKERRQ(ierr);<br>
<br>
The rhs evaluation is in FormFunctionLocal(), how could store the rhs vector b?<br></blockquote><div><br></div><div>1) In your nonlinear problem, what do you mean by b?</div><div><br></div><div>2) Don't use DMMG, use petsc-dev with regular SNES and SNESSetDM()</div>
<div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks very much!<br>
<br>
Cheers,<br>
<br>
Rebecca<br>
<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>