CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   HOWTO fix mpirun problem (http://www.cfd-online.com/Forums/openfoam/87759-howto-fix-mpirun-problem.html)

JunaidAhmad April 28, 2011 10:21

HOWTO fix mpirun problem
 
Hi

i am trying to run OF on multi computers [ip's: 10.9.11.3 and 10.9.11.4]
now when i run command

mpirun --hostfile mechine -np 4 simpleFoam -parallel > log

openfoam@10.9.11.4's password:
--------------------------------------------------------------------------
mpirun was unable to launch the specified application as it could not find an executable:

Executable: simpleFoam
Node: 10.9.11.4

while attempting to start process rank 2.
--------------------------------------------------------------------------

So please someone tell me what to do.

I am using Ubuntu 10.10.

longamon April 28, 2011 11:00

try :mpirun -np 4 --hostfile [hostfilename] simpleFoam -parallel > log

also try: foamJob -p simpleFoam with the machines file in the system folder

make sure all nodes have openFoam or can access OF functions. It could be your slave node 10.9.11.4 hasn't OF installed.

see this for more info: http://www.cfd-online.com/Forums/ope...am-solved.html

JunaidAhmad April 29, 2011 01:24

Thank You
 
Thanks a lot............................................... .........you are a life saver

JunaidAhmad April 29, 2011 13:21

i add [source /opt/openfoam171/etc/bashrc]
in the first line of these files
sudo gedit ~/.Profile and gedit ~/.Bashrc
and it worked
SO if anyone have that kind of message then copy and paste the above line


All times are GMT -4. The time now is 20:21.