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

[OpenFOAM.org] mpirun: Error: unknown option "-np"

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 9, 2021, 13:00
Default mpirun: Error: unknown option "-np"
  #1
New Member
 
Dmitry
Join Date: Sep 2020
Location: Moscow, RU
Posts: 16
Rep Power: 6
complete.basis is on a distinguished road
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
complete.basis is offline   Reply With Quote

Old   June 15, 2021, 04:22
Default
  #2
New Member
 
Dmitry
Join Date: Sep 2020
Location: Moscow, RU
Posts: 16
Rep Power: 6
complete.basis is on a distinguished road
solved this problem by setting in /etc/bashrc: export WM_MPLIB=SYSTEMOPENMPI and installed only OpenFOAM (skipped install of the ThirdParty software).
complete.basis is offline   Reply With Quote

Old   September 8, 2023, 05:17
Default mpirun: Error: unknown option "-np"
  #3
Member
 
bany
Join Date: Nov 2019
Posts: 50
Rep Power: 7
bany is on a distinguished road
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.
bany is offline   Reply With Quote

Reply

Tags
mpirun error, openfoam-7, ubuntu 20.04 lts


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
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


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