12.07.2015 Views

DOLFIN User Manual - FEniCS Project

DOLFIN User Manual - FEniCS Project

DOLFIN User Manual - FEniCS Project

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>DOLFIN</strong> <strong>User</strong> <strong>Manual</strong>Hoffman, Jansson, Logg, Wellswhere destination is one of ‘‘plain text’’ (standard output), ‘‘curses’’(curses interface) or ‘silent’’ (no messages printed).When messages are directed to the <strong>DOLFIN</strong> curses interface, a text-modegraphical and interactive user-interface is started in the current terminalwindow. To see a list of options, press ’h’ for help. The curses-interface isupdated periodically but the function dolfin update() can be used to forcea refresh of the display.It is possible to switch the <strong>DOLFIN</strong> log system on or off using the functiondolfin log() available in the dolfin namespace. This function accepts asargument a bool, specifying whether or not messages should be directedto the current output destination. This function can be useful to suppressexcessive logging, for example when calling a function that generates logmessages multiple times:GMRES gmres;while ( ... ){...dolfin_log(false);gmres.solve(A, x, b);dolfin_log(true);...}71

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!