|
[Sponsors] |
July 21, 2010, 06:01 |
mpirun trouble
|
#1 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
Hi everybody. Yesterday I made a fresh installation of OpenFOAM-1.7 and today I ran a tested case. I had a mpirun problem:
Code:
foamJob -p -s simpleFoam Parallel processing using SYSTEMOPENMPI with 2 processors Executing: mpirun -np 2 /opt/openfoam170/bin/foamExec simpleFoam -parallel | tee log Error : bashrc file could not be found for OpenFOAM- Error : bashrc file could not be found for OpenFOAM- My o.s. is Ubuntu 10.04. |
|
July 21, 2010, 06:32 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Hi Maurizio,
nice catch! That's another bug So feel free to report it The quickest fix is this: Code:
sudo ln -s openfoam170 /opt/OpenFOAM-1.7.0 Code:
sudo ln -s /opt/openfoam170 /opt/OpenFOAM-1.7.0 Quote:
Best regards, Bruno PS: I've hit 500 posts with this post
__________________
Last edited by wyldckat; July 21, 2010 at 06:33. Reason: Another possibility for symbolic linking... |
||
July 21, 2010, 06:55 |
|
#3 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
Hi, Bruno.
I hoped you were around here :-) I ran in the terminal your second hint and - I'm not so expert - it means that a folder named OpenFOAM-1.7.0 is created, linking to openfoam170. But something doesn't work and I still have the same output when launching foamJob. Have I to make any trivial thing (I already opened a new terminal), like rebooting the computer or create again a 'run' folder (I already had HOME/OpenFOAM/user-1.7.0/run)? Thanks for your help. |
|
July 21, 2010, 07:05 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Hi Maurizio,
Oops, I forgot one thing... You will have to edit your file "~/.bashrc" and change the line: Code:
. /opt/openfoam170/etc/bashrc Code:
. /opt/OpenFOAM-1.7.0/etc/bashrc As for using the symbolic link: I think it's the best option, since this way when OpenCFD updates the debian package, you'll have your installed version automatically updated too Best regards, Bruno
__________________
|
|
July 21, 2010, 07:26 |
|
#5 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
I edited the ~/.bashrc file and inserted
Code:
# OpenFOAM . /opt/OpenFOAM-1.7.0/etc/bashrc Last edited by vaina74; July 21, 2010 at 07:58. |
|
July 21, 2010, 08:45 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Ooook... I had to install it and test it for myself. The fixes above apparently are worthless
The fix that worked for me right now was to edit the file /opt/openfoam170/bin/foamJob: Code:
gksu gedit /opt/openfoam170/bin/foamJob Code:
mpirun $mpiopts $APPLICATION $@ -parallel You better report this, because this is on annoying bug I tried to fix the file foamExec, but it never wanted to work Best regards, Bruno
__________________
|
|
July 21, 2010, 09:50 |
|
#7 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
Bruno,
thank you very much for your temporary fix trick. I need OpenFOAM now, I couldn't wait for a definitve solution. I already posted a thread in the OF bugs section of the forum, just a link to this forum. Thanks again for your quick help. Best regards. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mpirun problems: exited on signal 11 (segmentation fault) | vaina74 | OpenFOAM Running, Solving & CFD | 17 | March 30, 2023 12:53 |
what is wrong with the mpirun parameter -mca ? | donno | OpenFOAM | 7 | February 2, 2023 21:12 |
Problem with mpirun with OpenFOAM | jiejie | OpenFOAM | 3 | July 7, 2010 19:30 |
Naca0012 k-e mpirun gives fpe whereas simpleFoam not | Pierpaolo | OpenFOAM | 1 | May 8, 2010 03:08 |
MPIRUN fails | lfbarcelo | OpenFOAM | 3 | March 29, 2010 07:41 |