This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

How to disable message "Solving linear variational problem."

+13 votes

It seems whenever we solve a variational problem with "solve", it always gives the message "Solving linear variational problem." Is there any way to disable the message?

asked Aug 3, 2013 by xpq FEniCS Novice (660 points)
edited Aug 6, 2013 by Garth N. Wells

1 Answer

+16 votes
Best answer

Yes, either raise the log level by calling the command


where level is either WARNING or ERROR. You can experiment with different levels to get different amounts of diagnostic messages:

CRITICAL  = 50, // errors that may lead to data corruption and suchlike
ERROR     = 40, // things that go boom
WARNING   = 30, // things that may go boom later
INFO      = 20, // information of general interest
PROGRESS  = 16, // what's happening (broadly)
TRACE     = 13, // what's happening (in detail)
DBG       = 10  // sundry

To turn of logging completely, use

answered Aug 4, 2013 by logg FEniCS Expert (11,790 points)
selected Aug 4, 2013 by xpq