How to turn off console output in adaptive solve?

Asked by Sergey Alyaev

How to turn off console output in adaptive solve?
I cannot find a place to look up possible strings for solver.parameters.

Question information

Language:
English Edit question
Status:
Answered
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Anders Logg (logg) said :
#1

On Tue, Sep 20, 2011 at 05:05:56PM -0000, Sergey Alyaev wrote:
> New question #171789 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/171789
>
> How to turn off console output in adaptive solve?
> I cannot find a place to look up possible strings for solver.parameters.

Try this:

  set_log_active(False)

--
Anders

Revision history for this message
Marie Rognes (meg-simula) said :
#2

On 09/20/11 19:25, Anders Logg wrote:
> Question #171789 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/171789
>
> Status: Open => Answered
>
> Anders Logg proposed the following answer:
> On Tue, Sep 20, 2011 at 05:05:56PM -0000, Sergey Alyaev wrote:
>> New question #171789 on DOLFIN:
>> https://answers.launchpad.net/dolfin/+question/171789
>>
>> How to turn off console output in adaptive solve?
>> I cannot find a place to look up possible strings for solver.parameters.
> Try this:
>
> set_log_active(False)

... or

     set_log_level(WARNING)

since set_log_active is deprecated:

     >> help(set_log_active):

    Help on function set_log_active in module dolfin.cpp:

    set_log_active(active=True)
         Turn logging on or off (deprecated)

--
Marie

Revision history for this message
Anders Logg (logg) said :
#3

On Tue, Sep 20, 2011 at 05:45:37PM -0000, Marie Rognes wrote:
> Question #171789 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/171789
>
> Marie Rognes proposed the following answer:
> On 09/20/11 19:25, Anders Logg wrote:
> > Question #171789 on DOLFIN changed:
> > https://answers.launchpad.net/dolfin/+question/171789
> >
> > Status: Open => Answered
> >
> > Anders Logg proposed the following answer:
> > On Tue, Sep 20, 2011 at 05:05:56PM -0000, Sergey Alyaev wrote:
> >> New question #171789 on DOLFIN:
> >> https://answers.launchpad.net/dolfin/+question/171789
> >>
> >> How to turn off console output in adaptive solve?
> >> I cannot find a place to look up possible strings for solver.parameters.
> > Try this:
> >
> > set_log_active(False)
>
>
> ... or
>
> set_log_level(WARNING)
>
> since set_log_active is deprecated:
>
> >> help(set_log_active):
>
> Help on function set_log_active in module dolfin.cpp:
>
> set_log_active(active=True)
> Turn logging on or off (deprecated)

Why is it deprecated? It shouldn't be. The function logging() on the
other hand is deprecated and replaced by set_log_active().

--
Anders

Revision history for this message
Marie Rognes (meg-simula) said :
#4

On 09/20/11 20:12, Anders Logg wrote:
> On Tue, Sep 20, 2011 at 05:45:37PM -0000, Marie Rognes wrote:
>> Question #171789 on DOLFIN changed:
>> https://answers.launchpad.net/dolfin/+question/171789
>>
>> Marie Rognes proposed the following answer:
>> On 09/20/11 19:25, Anders Logg wrote:
>>> Question #171789 on DOLFIN changed:
>>> https://answers.launchpad.net/dolfin/+question/171789
>>>
>>> Status: Open => Answered
>>>
>>> Anders Logg proposed the following answer:
>>> On Tue, Sep 20, 2011 at 05:05:56PM -0000, Sergey Alyaev wrote:
>>>> New question #171789 on DOLFIN:
>>>> https://answers.launchpad.net/dolfin/+question/171789
>>>>
>>>> How to turn off console output in adaptive solve?
>>>> I cannot find a place to look up possible strings for solver.parameters.
>>> Try this:
>>>
>>> set_log_active(False)
>>
>> ... or
>>
>> set_log_level(WARNING)
>>
>> since set_log_active is deprecated:
>>
>> >> help(set_log_active):
>>
>> Help on function set_log_active in module dolfin.cpp:
>>
>> set_log_active(active=True)
>> Turn logging on or off (deprecated)
> Why is it deprecated? It shouldn't be. The function logging() on the
> other hand is deprecated and replaced by set_log_active().

I don't know; I was under the impression that you knew:

bzr blame log.h:

5835 logg@si | /// Turn logging on or off (deprecated)
                    | void set_log_active(bool active=true);
                    |

Would you care to update the docstring?

--
Marie

Revision history for this message
Anders Logg (logg) said :
#5

On Tue, Sep 20, 2011 at 09:18:55PM +0200, Marie E. Rognes wrote:
> On 09/20/11 20:12, Anders Logg wrote:
> >On Tue, Sep 20, 2011 at 05:45:37PM -0000, Marie Rognes wrote:
> >>Question #171789 on DOLFIN changed:
> >>https://answers.launchpad.net/dolfin/+question/171789
> >>
> >>Marie Rognes proposed the following answer:
> >>On 09/20/11 19:25, Anders Logg wrote:
> >>>Question #171789 on DOLFIN changed:
> >>>https://answers.launchpad.net/dolfin/+question/171789
> >>>
> >>> Status: Open => Answered
> >>>
> >>>Anders Logg proposed the following answer:
> >>>On Tue, Sep 20, 2011 at 05:05:56PM -0000, Sergey Alyaev wrote:
> >>>>New question #171789 on DOLFIN:
> >>>>https://answers.launchpad.net/dolfin/+question/171789
> >>>>
> >>>>How to turn off console output in adaptive solve?
> >>>>I cannot find a place to look up possible strings for solver.parameters.
> >>>Try this:
> >>>
> >>> set_log_active(False)
> >>
> >>... or
> >>
> >> set_log_level(WARNING)
> >>
> >>since set_log_active is deprecated:
> >>
> >> >> help(set_log_active):
> >>
> >> Help on function set_log_active in module dolfin.cpp:
> >>
> >> set_log_active(active=True)
> >> Turn logging on or off (deprecated)
> >Why is it deprecated? It shouldn't be. The function logging() on the
> >other hand is deprecated and replaced by set_log_active().
>
> I don't know; I was under the impression that you knew:
>
> bzr blame log.h:
>
> 5835 logg@si | /// Turn logging on or off (deprecated)
> | void set_log_active(bool active=true);
> |
>
> Would you care to update the docstring?

I must have edited the wrong line by mistake. Only logging() should be
deprecated. I'm fixing it now.

--
Anders

Revision history for this message
Marie Rognes (meg-simula) said :
#6

On 09/20/11 21:25, Anders Logg wrote:
> On Tue, Sep 20, 2011 at 09:18:55PM +0200, Marie E. Rognes wrote:
>> On 09/20/11 20:12, Anders Logg wrote:
>>> On Tue, Sep 20, 2011 at 05:45:37PM -0000, Marie Rognes wrote:
>>>> Question #171789 on DOLFIN changed:
>>>> https://answers.launchpad.net/dolfin/+question/171789
>>>>
>>>> Marie Rognes proposed the following answer:
>>>> On 09/20/11 19:25, Anders Logg wrote:
>>>>> Question #171789 on DOLFIN changed:
>>>>> https://answers.launchpad.net/dolfin/+question/171789
>>>>>
>>>>> Status: Open => Answered
>>>>>
>>>>> Anders Logg proposed the following answer:
>>>>> On Tue, Sep 20, 2011 at 05:05:56PM -0000, Sergey Alyaev wrote:
>>>>>> New question #171789 on DOLFIN:
>>>>>> https://answers.launchpad.net/dolfin/+question/171789
>>>>>>
>>>>>> How to turn off console output in adaptive solve?
>>>>>> I cannot find a place to look up possible strings for solver.parameters.
>>>>> Try this:
>>>>>
>>>>> set_log_active(False)
>>>> ... or
>>>>
>>>> set_log_level(WARNING)
>>>>
>>>> since set_log_active is deprecated:
>>>>
>>>> >> help(set_log_active):
>>>>
>>>> Help on function set_log_active in module dolfin.cpp:
>>>>
>>>> set_log_active(active=True)
>>>> Turn logging on or off (deprecated)
>>> Why is it deprecated? It shouldn't be. The function logging() on the
>>> other hand is deprecated and replaced by set_log_active().
>> I don't know; I was under the impression that you knew:
>>
>> bzr blame log.h:
>>
>> 5835 logg@si | /// Turn logging on or off (deprecated)
>> | void set_log_active(bool active=true);
>> |
>>
>> Would you care to update the docstring?
> I must have edited the wrong line by mistake. Only logging() should be
> deprecated. I'm fixing it now.

Super :-)

--
Marie

Can you help with this problem?

Provide an answer of your own, or ask Sergey Alyaev for more information if necessary.

To post a message you must log in.