[petsc-dev] disable 'info' debug messages with PetscInfoAllow

Thomas Hisch t.hisch at gmail.com
Sun Jul 5 12:17:24 CDT 2015


On Tue, Jun 16, 2015 at 2:20 PM, Matthew Knepley <knepley at gmail.com> wrote:

> On Tue, Jun 9, 2015 at 4:15 PM, Thomas Hisch <t.hisch at gmail.com> wrote:
>
>> Hello,
>>
>> 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
>> https://bitbucket.org/petsc/petsc4py/issue/25). However, disabling the
>> 'info' log level with PetscInfoAllow(PETSC_FALSE, NULL) has no effect.
>> after it was enabled with PetscInfoAllow(PETSC_TRUE, NULL).
>>
>
> Hmm, it really looks to me like this should work and I believe it does in
> C. Do you have a small test?
>

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.

Thomas

>
>   Thanks,
>
>     Matt
>
>
>> Best regards,
>> Thomas
>>
> --
> What most experimenters take for granted before they begin their
> experiments is infinitely more interesting than any results to which their
> experiments lead.
> -- Norbert Wiener
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20150705/b43c79c7/attachment.html>


More information about the petsc-dev mailing list