CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

using mpirun

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 1, 2016, 08:40
Default using mpirun
  #1
Member
 
Emad Tandis
Join Date: Sep 2010
Posts: 77
Rep Power: 12
EmadTandis is on a distinguished road
Hello
I am new to mpirun in linux
I'd like to use mpirun to apply simpleFoam using a network with 2 nodes.
to do that, I copy airfoil2D in tutorial folders and share it to client nodes using "nfs".
I am able to use mpirun in loacl machine by applying this command;
$mpirun -np 4 simpleFoam -parallel
but the problem is when I want to employ another node, let's say client, to use mpirun. the command I have used is as below:
$ mpirun -np 4 --hostfile hostFile simpleFoam -parallel
but it doesn't work. while my own code ( printf('hello') ) works well as below through network:
$ mpirun -np 4 --hostfile hostFile test -parallel

can anyone help me what's the problem?
EmadTandis is offline   Reply With Quote

Old   December 4, 2016, 15:29
Default
  #2
Member
 
Darko Radenkovic
Join Date: Oct 2015
Posts: 38
Rep Power: 7
dradenkovic is on a distinguished road
You need to provide more details on the error. Try:

mpirun –hostfile <machines> -np <nProcs>
<foamExec> <otherArgs> -parallel > log &

Here is link that you might find useful:

http://cfd.direct/openfoam/user-guid...ions-parallel/

Regards,
Darko
dradenkovic is offline   Reply With Quote

Reply

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
MPIrun Problem with FoamJob Workaround kaszt OpenFOAM Running, Solving & CFD 3 October 4, 2018 13:55
mpirun hangup.. can anyone help how to fix mpirun issues. prameelar OpenFOAM 11 May 25, 2017 08:21
OF mpirun and parallel problem heksel8i OpenFOAM Running, Solving & CFD 2 September 11, 2013 06:33
MPIRUN fails lfbarcelo OpenFOAM 3 March 29, 2010 08:41
what is wrong with the mpirun parameter -mca ? donno OpenFOAM 6 March 24, 2010 17:00


All times are GMT -4. The time now is 09:16.