|
[Sponsors] |
[OpenFOAM.org] Problems with using MPIRUN/run cases in parallel in OpenFOAM 4.1 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 24, 2017, 11:22 |
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: 9 |
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 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 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! |
|
August 25, 2017, 14:43 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
Tags |
mpirun, openfoam4.1 |
|
|
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 05:13 |
Explicitly filtered LES | saeedi | Main CFD Forum | 16 | October 14, 2015 12:58 |
running multiple parallel cases in openfoam slows the simulation | kkpal | OpenFOAM Running, Solving & CFD | 2 | August 21, 2015 12:08 |
OpenFoam parallel on 2 computers : Cannot find file "points" | Blue8655 | OpenFOAM Running, Solving & CFD | 1 | June 3, 2015 22:59 |
Can not run OpenFOAM in parallel in clusters, help! | ripperjack | OpenFOAM Running, Solving & CFD | 5 | May 6, 2014 16:25 |