← Back to team overview

dolfin team mailing list archive

MPI::num_processes() for single process

 

After hg pull/update from repository my code have started to report that it needs MPI. I don't use multi processors at this moment, so I was a confused.

I've found that the problem is in Mesh:Mesh(std:string) constructor.
If one process is started MPI::num_processes() is equal 1, not 0.

So there should be:
if (MPI::num_processes() > 1)
rather than:
if (MPI::num_processes() > 0)

regrd.
BArtek





Follow ups