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

Report processor solve messages only for one processor

+2 votes

Hello,

I've been cleaning up my code and would like to limit the number of messages that the solver prints to the screen. I'd like to do something like this:

if MPI.rank(mpi_comm_world()) != 0:
  parameters['krylov_solver']['report'] = False

and something similar for the nonlinear solver as well.

Unfortunately, this doesn't work. Does anyone know of a way to do this without hacking the source?

Thanks!

asked Jul 1, 2014 by pf4d FEniCS User (2,970 points)
...