Reduce command line output of solve

Is there a way to avoid the output of the solve function? Currently I get the message Solving linear variational problem. every time I call solve(...). In my time-stepping procedure I have to call solve(...) very, very often within a single timestep and therefore it would be helpful to avoid the output.

What is the log_level that you have set in your program ? If you haven’t, you could do something like

set_log_level(50)

or

set_log_active(False)

Of course this assume that you have imported dolfin using the wildcards

from dolfin import *

Generally, the lower the log_level the more verbose log you see in the output. You could experiment with different levels to see what suits you the best in case if you do not want to completely turn it off.