Which version of OpenMPI are you using ? I found this thread http://www.open-mpi.org/community/lists ... 5/3175.php, that seems to indicate you should modify line 135 of file runcase_mpi_env in ./share/apps/code_saturne/2.0/ncs-2.0.0-rc1/bin/share/ncs/runcase_mpi_env, to remove the 'machinefile $MPIHOSTS part.
This is probably not an issue with OpenMPI 1.3, as one of our clusters uses OpenMPI 1.3, and Torque if I remember correctly, and we have not encounterred this issue, but it is easy to try.
Also, when you tested running "env" under MPI, was your SALOME environement sourced ?
I see 2 possible environment conflicts in your case:
- SALOME environment does not play well with OpenMPI
OpenMPI clashes with the one from OpenFoam, also in your path.
Finally, in case the environment transferred by OpenMPI is different from the standard one, it would be interesting to add:
just under:echo 'echo env' >> $localexec
near line 875 of your 'runcase', as well as add 'echo env' near the beginning of your runcase.echo '#!/bin/sh' > $localexec
In any case, the error message seems to indicate the script was not even able to start the cs_solver executable, so forcing the generated "localexec" script to dump its environment before calling the code would also allow to determine if the mpiexec command at least goes that far (helping determine whether it is a localhost or LD_LIBRARY_PATH issue for example).
Best regards,
Yvan