<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 16, 2015 at 2:20 PM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">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 dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Tue, Jun 9, 2015 at 4:15 PM, Thomas Hisch <span dir="ltr"><<a href="mailto:t.hisch@gmail.com" target="_blank">t.hisch@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 dir="ltr">Hello,<div><br></div><div>i want to conditionally enable and disable the 'info' log level in a python script using PetscInfoAllow. Is this possible in principle? I have tried to write the missing wrapper for PetscInfoAllow in petsc4py (see <a href="https://bitbucket.org/petsc/petsc4py/issue/25" target="_blank">https://bitbucket.org/petsc/petsc4py/issue/25</a>). However, disabling the 'info' log level with PetscInfoAllow(PETSC_FALSE, NULL) has no effect. after it was enabled with PetscInfoAllow(PETSC_TRUE, NULL).</div></div></blockquote><div><br></div></span><div>Hmm, it really looks to me like this should work and I believe it does in C. Do you have a small test?</div></div></div></div></blockquote><div><br></div><div>I've just tested it with the latest petsc[4py]/slepc[4py] versions from the maint branches. A modified petsc C example as well as a modified slepc4py example now lead to the expected behavior. For my last tests, which I did in June, I used petsc/slepc 3.5 - maybe this was the reason why it didn't work. </div><div><br></div><div>Thomas</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><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"><div dir="ltr"><div>Best regards,</div><div>Thomas</div></div></blockquote></div><span class="HOEnZb"><font color="#888888">-- <br><div>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>
</font></span></div></div>
</blockquote></div><br></div></div>