Skip to content

The dummy Pstream library cannot be used in parallel mode

Summary

It's not possible to run any parallel commands with mpirun. I've also tried recommendations from #1817 (closed) but it didn't help.

Steps to reproduce

$ docker run -it ubuntu bash
$ apt update && apt install -y sudo curl
$ curl -s https://dl.openfoam.com/add-debian-repo.sh | sudo bash
$ apt-get install -y openfoam2012-default
$ adduser openfoam
$ source /usr/lib/openfoam/openfoam2012/etc/bashrc
$ cp -r /usr/lib/openfoam/openfoam2012/tutorials/incompressible/simpleFoam/motorBike/ .
$ cd motorBike
$ ./Allrun

What is the current bug behaviour?

None of the parallel commands that requires mpirun are working

What is the expected correct behavior?

All mpirun commands to work

Relevant logs and/or images

The First parallel command in tutorial is snappyHexMesh. All other commands that run in parallel have the same errors.


--> FOAM FATAL ERROR: (openfoam-2012)
The dummy Pstream library cannot be used in parallel mode


    From static bool Foam::UPstream::init(int&, char**&, bool)
    in file UPstream.C at line 50.

FOAM exiting



--> FOAM FATAL ERROR: (openfoam-2012)
The dummy Pstream library cannot be used in parallel mode


    From static bool Foam::UPstream::init(int&, char**&, bool)
    in file UPstream.C at line 50.

FOAM exiting

--------------------------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------


--> FOAM FATAL ERROR: (openfoam-2012)
The dummy Pstream library cannot be used in parallel mode


    From static bool Foam::UPstream::init(int&, char**&, bool)
    in file UPstream.C at line 50.

FOAM exiting

--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:

  Process name: [[32098,1],1]
  Exit code:    1
--------------------------------------------------------------------------
  • OpenFOAM version : v2012
  • Operating system : ubuntu:focal (docker)
  • Compiler : installed from deb openfoam repo
Edited by Mark OLESEN