CFDEMcoupling on cluster: "MPI_Comm_rank() function was called before MPI_INIT was invoked"

Submitted by Swantje on Tue, 07/28/2015 - 15:22

Hi,

I've installed LIGGGHTS-PUBLIC as well as CFDEMcoupling-PUBLIC from git using openmpi 1.8.4 and OpenFOAM 2.3.1 on a RHEL 6-cluster.

Running LIGGGHTS and OpenFOAM individually works fine. However, running CFDEM cases using cfdemSolverPiso fails, resulting in the following error messages.

Reading g
Selecting incompressible transport model Newtonian
Selecting turbulence model type RASModel
Selecting RAS turbulence model laminar
Selecting locateModel engine
Selecting dataExchangeModel twoWayMPI
Starting up LIGGGHTS for first time execution

*** The MPI_Comm_rank() function was called before MPI_INIT was invoked.
*** This is disallowed by the MPI standard.
*** Your MPI job will now abort.

Anyone got any ideas as to why this happens and/or how to fix this?

j-kerbl's picture

j-kerbl | Thu, 08/06/2015 - 16:30

Hi Swantje,

to me this looks like you only executed cfdemSolverPiso.
Since the coupling works with mpi, we usually use 2 processors minimum.
Please decompose the case and run "mpirun -np x cfdemSolverPiso -parallel"
x is the number of processors.

Cheers
Josef