← Back to team overview

dolfin team mailing list archive

Re: [Question #171789]: How to turn off console output in adaptive solve?

 

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



Follow ups

References