Attempting to use an MPI routine before initializing MPI

Submitted by paulaalejandrayo on Thu, 05/16/2019 - 12:33

Hello, I am trying to run cfdem in a multinode cluster. It looks like it is installed alright but when I execute this it gives the error:
"Attempting to use an MPI routine before initializing MPI"
This error comes from the "twoWayMPI.C" file when it runs ligggths for the first time,
MPI_Comm_dup(MPI_COMM_WORLD, &comm_liggghts);

In google it says that I should initializate the mpi before using it
MPI_Init(NULL, NULL);

but I wonder if this error is about this or it is about something else, as the same source code is working well in my laptop.
Does anyone experimented similar issues?
Thank you in advance.

Paula