So, I should define a monitor context "mon" and a function like "Monitor" which I want to change whatever I wand during each SNES iteration then pass it to the function <a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/SNES/SNESMonitorSet.html#SNESMonitorSet">SNESMonitorSet</a>( snes, Monitor, &mon, 0 );<br>
<br>So is it correct?<br>
<br><br><br><br><div class="gmail_quote">On Thu, Oct 27, 2011 at 5:16 PM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, Oct 27, 2011 at 12:44 PM, behzad baghapour <span dir="ltr"><<a href="mailto:behzad.baghapour@gmail.com" target="_blank">behzad.baghapour@gmail.com</a>></span> wrote:<br></div><div class="gmail_quote">
<div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear All,<br><br>1- Is there any way to change the setting of SNES within its iteration process? ( for example, changing PC type or fill level due to some reasons ) <br></blockquote><div><br></div></div><div>Yes,</div><div>
<br>
</div><div> SNESGetKSP()</div><div> KSPGetPC()</div><div> PC***()</div><div><br></div><div>I would probably put this code in a SNES monitor.</div><div> </div><div> Matt</div><div class="im"><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2- page 120 of PETSc manual (TS): "For location-dependent pseudo-timestepping, the interface function has not yet been created."<br>
Is there any way to control time-step locally? (This is due to variable time updating usually needed in PDE solution)<br><br>Thanks a lot,<br>B. B.<br><font color="#888888"><br>-- <br>==================================<br>
Behzad Baghapour<br>Ph.D. Candidate, Mechecanical Engineering<br>
University of Tehran, Tehran, Iran<br><a href="https://sites.google.com/site/behzadbaghapour" target="_blank">https://sites.google.com/site/behzadbaghapour</a><br>Fax: 0098-21-88020741<br>==================================<br>
<br>
</font></blockquote></div></div><font color="#888888"><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>
</font></blockquote></div><br><br clear="all"><br>-- <br>==================================<br>Behzad Baghapour<br>Ph.D. Candidate, Mechecanical Engineering<br>University of Tehran, Tehran, Iran<br><a href="https://sites.google.com/site/behzadbaghapour" target="_blank">https://sites.google.com/site/behzadbaghapour</a><br>
Fax: 0098-21-88020741<br>==================================<br><br>