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

How to turn off exessive logging in parallel?

+1 vote

Hi,

I tried to turn off exessive logging in parallel by the command:

parameters["std_out_all_processes"] = False

But it doesn't work in my case and I don't know why.

I use Ubuntu 12.04 x64 and dolfin 1.4.

I am using "demo/documented/navier-stokes/python/demo_navier-stokes.py" example.
Link to example:
http://fenicsproject.org/documentation/dolfin/1.4.0/python/demo/documented/navier-stokes/python/documentation.html

To run program in parallel I use the command:

mpirun -n 2 python demo_navier-stokes.py

Did anyone have the same problem?
Could you help me to solve it?

Thanks in advance!

Best regards,
Maksim

asked Jan 19, 2015 by Maks FEniCS User (2,430 points)

1 Answer

+1 vote
 
Best answer

Setting parameters["std_out_all_processes"] = False does not work in 1.4. Try something like this instead:

from dolfin import *
set_log_level(ERROR)
if MPI.rank(mpi_comm_world()) == 0:
  set_log_level(PROGRESS)
answered Jan 19, 2015 by johannr FEniCS Expert (17,350 points)
selected Jan 19, 2015 by Maks

Thank you so much for very fast and right answer!

Is it only dolfin 1.4 error or any later version, like dolfin 1.5, too?

It's not hard to add these lines of code above, simple want to know.

Besides that I think you code example is more elegant solution.

No, it doesn't work in 1.5 either.

...