|
[Sponsors] |
[OpenFOAM.org] mpirun: Error: unknown option "-np" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 9, 2021, 13:00 |
mpirun: Error: unknown option "-np"
|
#1 |
New Member
Dmitry
Join Date: Sep 2020
Location: Moscow, RU
Posts: 16
Rep Power: 6 |
Hello, everyone!
I have a problem with running solver in parallel: mpirun -np 4 rhoReactingCentralFoam -parallel > log_run.log mpirun: Error: unknown option "-np" When I run it on a single processor - everything is fine. I am working on Ubuntu 20.04 LTS (run in docker over Windows 10 Pro 21H1) with OpenFOAM 7 (installed it using this guide https://openfoamwiki.net/index.php/I...7/Ubuntu/20.04) I've also installed swak4foam and I am using custom solver rhoReactingCentralFoam. which mpirun /home/dkuzovlev/OpenFOAM/OpenFOAM-7/bin/mpirun whereis mpirun mpirun: /usr/bin/mpirun /usr/bin/mpirun.openmpi /home/dkuzovlev/OpenFOAM/OpenFOAM-7/bin/mpirun /usr/share/man/man1/mpirun.1.gz ompi_info -V Open MPI v4.0.3 ompi_info --path bindir Bindir: /home/dkuzovlev/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/openmpi-2.1.1/bin What is wrong? What should I do? Kind regards Dmitry |
|
June 15, 2021, 04:22 |
|
#2 |
New Member
Dmitry
Join Date: Sep 2020
Location: Moscow, RU
Posts: 16
Rep Power: 6 |
solved this problem by setting in /etc/bashrc: export WM_MPLIB=SYSTEMOPENMPI and installed only OpenFOAM (skipped install of the ThirdParty software).
|
|
September 8, 2023, 05:17 |
mpirun: Error: unknown option "-np"
|
#3 |
Member
bany
Join Date: Nov 2019
Posts: 50
Rep Power: 7 |
Recently, i met the same problem. However, i cannot understand the explanation.
After several tries, openmpi-2.1.1 is loaded into Thirdparty-7, and modify “WM_MPLIB=SYSTEMOPENMPI” to “WM_MPLIB=OPENMPI in ~/OpenFOAM/OpenFOAM-7/ext/bashrc. Then, load the openmpi-2.1.1 into Thirdparty-7, ./Allclean;./Allwmake And it will install openmpi automatically. Last edited by bany; September 9, 2023 at 05:13. |
|
Tags |
mpirun error, openfoam-7, ubuntu 20.04 lts |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ansys CFX problem: unexpected very high temperatures in premix laminar combustion | faizan_habib7 | CFX | 4 | February 1, 2016 18:00 |
Error in Two phase (condensation) modeling | adilsyyed | CFX | 15 | June 24, 2015 20:42 |
Compression stoke is giving higher pressure than calculated | nickjuana | CFX | 62 | May 19, 2015 14:32 |
An error has occurred in cfx5solve: | volo87 | CFX | 5 | June 14, 2013 18:44 |
RPM in Wind Turbine | Pankaj | CFX | 9 | November 23, 2009 05:05 |