dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #11239
Re: MPI::num_processes() for single process
On Thu, Dec 18, 2008 at 03:35:31PM -0700, Bartosz Sawicki wrote:
> 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
Yes, my mistake. Fixed now.
--
Anders
Attachment:
signature.asc
Description: Digital signature
References