<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Mar 25, 2015 at 10:13 AM, Florian Lindner <span dir="ltr"><<a href="mailto:mailinglists@xgm.de" target="_blank">mailinglists@xgm.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I'm using the petsc4py. It works fine after some hurdling with missing documentation. (were not able to find API doc anywhere, I generated it myself now).<br>
<br>
I try to use the switches like -ksp_monitor like that:<br>
<br>
import petsc4py<br>
from petsc4py import PETSc<br>
<br>
petsc4py.init(sys.argv)<br>
<br>
but no reaction when calling my script like that:<br>
<br>
python prbf.py -ksp_monitor<br>
<br>
What am I doing wrong? I also tried calling init before importing PETSc but no changes.<br></blockquote><div><br></div><div>Did you remember to call setFromOptions() on the KSP? We do not configure anything from</div><div>the command line unless you tell us to. That way, people can do things solely from the API</div><div>is they want.</div><div><br></div><div>How did you generate the documentation?</div><div><br></div><div> Thanks,</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,<br>
Florian<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">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</div>
</div></div>