CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] Problems with using MPIRUN/run cases in parallel in OpenFOAM 4.1

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 24, 2017, 10:22
Default Problems with using MPIRUN/run cases in parallel in OpenFOAM 4.1
  #1
New Member
 
P. H.
Join Date: Jul 2017
Posts: 5
Rep Power: 5
Proportion is on a distinguished road
Hello,

I'm having trouble running cases in parallel using mpirun. I installed OpenFOAM 4.1 on my Virtual Box (Ubuntu 12.04) using the following guide https://openfoamwiki.net/index.php/I...OAM-4.1/Ubuntu.

The installation seems to work fine if I run cases normally, but when I try to run them in parallel, an error is displayed pointing at a missing config file.

Code:
ubuntu@ubuntu-VirtualBox:~/OpenFOAM/ubuntu-4.1/run/tmp$ mpirun -np 4 rhoCentralFoam -parallel > log &
[1] 9273
ubuntu@ubuntu-VirtualBox:~/OpenFOAM/ubuntu-4.1/run/tmp$ Cannot open configuration file /usr/share/openmpi/mpirun-wrapper-data.txt
Error parsing data file mpirun: Not found
There is a specific part in the installation guide for setting symbolic links to make sure the correct MPI installation is used (6.). When I run those, the following happens:

Code:
ubuntu@ubuntu-VirtualBox:/opt$ ln -s /usr/bin/mpicc.openmpi OpenFOAM-4.1/bin/mpicc
ln: failed to create symbolic link `OpenFOAM-4.1/bin/mpicc': File exists
ubuntu@ubuntu-VirtualBox:/opt$ ln -s /usr/bin/mpirun.openmpi OpenFOAM-4.1/bin/mpirun
ln: failed to create symbolic link `OpenFOAM-4.1/bin/mpirun': File exists
Googling the error didn't help me, since all hits are pointing towards a file called "mpicc-wrapper-data.txt".

Does anyone know what the purpose of "mpirun-wrapper-data.txt" or how I could modify "mpicc-wrapper-data.txt" in order to get it to work?

Thank you in advance!
Proportion is offline   Reply With Quote

Old   August 25, 2017, 13:43
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,956
Blog Entries: 43
Rep Power: 122
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: The straight forward possible solution would be to reboot the virtual machine or at least log out and then log back inside Ubuntu, to ensure that everything that was installed with apt-get is now fully operational.
Then start a new terminal and make sure you run:
Code:
of41
to activate/load the OpenFOAM environment.
lenzo likes this.
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
mpirun, openfoam4.1

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Differences in interPhaseChangeFoam between OpenFOAM 2.3 and OpenFOAM 4.1 Mashiro5 OpenFOAM Running, Solving & CFD 2 May 29, 2017 04:13
Explicitly filtered LES saeedi Main CFD Forum 16 October 14, 2015 11:58
running multiple parallel cases in openfoam slows the simulation kkpal OpenFOAM Running, Solving & CFD 2 August 21, 2015 11:08
OpenFoam parallel on 2 computers : Cannot find file "points" Blue8655 OpenFOAM Running, Solving & CFD 1 June 3, 2015 21:59
Can not run OpenFOAM in parallel in clusters, help! ripperjack OpenFOAM Running, Solving & CFD 5 May 6, 2014 15:25


All times are GMT -4. The time now is 13:30.