<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Bojan,<div><br></div><div>I'm not sure if this relates to your problem but I had a similar situation: I use KSPSetInitialGuessNonzero with GMRES. Setting DIFFERENT_NONZERO_PATTERN in KSPSetOperators solved my problem. </div><div><br></div><div>Best,</div><div>Ata<span class="Apple-style-span" style="color: rgb(255, 255, 255); font-family: Menlo; font-size: 11px; ">;</span></div><div><div><div>On Jun 3, 2012, at 10:28 AM, Jed Brown wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="gmail_quote">On Sun, Jun 3, 2012 at 10:20 AM, Niceno Bojan <span dir="ltr"><<a href="mailto:bojan.niceno@psi.ch" target="_blank">bojan.niceno@psi.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":2f7">I will need some time with -ksp_view_binary.<br>
<br>
The file being created (called "binaryoutput") seems to grow as simulation time steps go by. It seems to me that all systems solved during a run are stored in the same file. I am struggling to understand how to pick the one I want to reproduce in ex10.</div>
</blockquote></div><br><div>Yeah, you can either call MatView() and VecView() yourself or you can use PetscOptionsSetValue("-ksp_view_binary", "1") before the solve. You can also load the whole sequence in Matlab.</div>
</blockquote></div><br></div>
</body></html>