CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Can't run in parallel (http://www.cfd-online.com/Forums/openfoam-solving/99260-cant-run-parallel.html)

JulytoNovember March 29, 2012 21:03

Can't run in parallel
 
I'm using OpenFOAM-1.6-ext when I try to run my case in parallel I get this error.
PHP Code:

eason@eason-laptop:~$ cd Desktop/1
 eason
@eason-laptop:~/Desktop/1foamJob --p pimpleDyMFoam
 Parallel processing using OPENMPI with 2 processors
 Executing
mpirun -np 2 /home/eason/OpenFOAM/OpenFOAM-1.6-ext/bin/foamExec pimpleDyMFoam -parallel tee log
 
/home/eason/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc308: [[: not found
 
/home/eason/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc308: [[: not found
 export
21: -pthreadbad variable name
 export
21: -pthreadbad variable name
 
--------------------------------------------------------------------------
 
mpirun noticed that the job abortedbut has no info as to the process
 that caused that situation
.
 -------------------------------------------------------------------------- 

The case decomposed and my it will run on a single processor. I've tried everything I've read on this site. Seems like foamJob or foamExec is not finding the bashrc file for OpenFOAM-1.6-ext. Any ideas on what is wrong or how can I fix it?

jferrari March 30, 2012 08:14

I'm not sure how foamJob works, but when I do parallel runs I use the line:

Code:

mpirun -np 6 pimpleFoam -parallel > log &
They only thing I don't see in your code is the -parallel option. Try using the command above instead of foamJob and see if that works.

JulytoNovember March 31, 2012 09:28

Thank you for your help, its works I appreciate the help. Now I can use all 8 cores.


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