On Fri, Apr 20, 2012 at 9:53 AM, Dominik Szczerba <span dir="ltr"><<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</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">
I am using SNES to solve a simple nonlinear system.<br>
My vector of unknowns (x) is ghosted, and before (i.e. with my own<br>
home brewed nonlinear solver) I had to always update the ghosted<br>
values after a linear solve with ksp. How can I now force the update,<br>
if I am not calling ksp myself?<br></blockquote><div><br></div><div>You can use</div><div><br></div><div> <a href="http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/SNES/SNESSetUpdate.html">http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/SNES/SNESSetUpdate.html</a></div>
<div><br></div><div>Also, you could investigate using DM, where this should be automatic, but that is probably</div><div>a bigger change to your code.</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 for any hints,<br>
<br>
Dominik<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>