turn down log level

Asked by Nico Schlömer on 2013-03-14

I'm trying to control the issuing of messages like

Solving linear system of size 6562 x 6562 (PETSc Krylov solver).

when solving linear systems. From looking at the source code, I gather that I have to set the parameter "report" to False, but I've got no idea where the parameter list is to be found. (It's not not the global parameters[].)

Any hints?

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Andrew McRae
Solved:
2013-03-15
Last query:
2013-03-15
Last reply:
2013-03-14
Andrew McRae (andymc) said : #2

I don't know how to control messages in detail, but if you insert

set_log_level(PROGRESS) or set_log_level(DEBUG) or set_log_level(ERROR)

into your code, you can turn off most of the chatter (for DEBUG/ERROR anyway)

Nico Schlömer (nschloe) said : #3

set_log_level(ERROR) did what I needed. Thanks!