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

Parallel run: bool ipstream::init attempt to run parallel on 1 processor

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 10, 2017, 04:17
Default Parallel run: bool ipstream::init attempt to run parallel on 1 processor
  #1
New Member
 
Sarah Leenknegt
Join Date: Aug 2015
Posts: 14
Rep Power: 11
SarahLee is on a distinguished road
Dear all,

We are having trouble running OpenFOAM 3+ cases in parallel. When running:
mpiexec -np 2 buoyantboussinesqsimplefoam.exe -parallel (on Windows 7 and 10), we get:

--> FOAM FATAL ERROR:
bool IPstream::init(int& argc, char**& argv) : attempt to run parallel on 1 processor

This happens in a newly set up case, but also in old cases which were running fine with OpenFOAM 3+ about a month ago. So we don't believe the case is set up or decomposed incorrectly.

We have two theories:
- something got messed up by a windows update
- we have since then installed FDS, and this messed up the mpiexec for openFOAM

I am by far no IT-expert, so I don't know it these are even viable theories?

Any ideas on what to read or what to try?

I found an old thread that may help, but don't know how to translate the bashrc to Windows:
OF 2.0.1 parallel running problems

Thanks!

Sarah
SarahLee is offline   Reply With Quote

Old   January 11, 2017, 03:45
Default
  #2
New Member
 
Sarah Leenknegt
Join Date: Aug 2015
Posts: 14
Rep Power: 11
SarahLee is on a distinguished road
Dear all

As an answer to my own question, we found the problem:
Using "where mpiexec" in the cmd-window, there were indeed two different mpiexec.exe's installed: FDS and Microsoft HPC Pack. The one from FDS has priority, but OpenFOAM needs the other one.

Solution: run the mpiexec with the full path.
There is probably a more elegant solution, but this one works. :-)

Cheers,

Sarah
SarahLee is offline   Reply With Quote

Old   January 11, 2017, 04:24
Default
  #3
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 21
floquation will become famous soon enough
Quote:
Originally Posted by SarahLee View Post
There is probably a more elegant solution, but this one works. :-)
You probably have defined an alias to load openfoam in your bashrc file. Within that alias, you could give the mpiexec you need preference by moving its path up in your $PATH environmental variable:
Code:
alias of240="blabla && PATH='path-to-directory-containing-the-desired-mpiexec:'$PATH"
The $PATH variable is searched top-down until your command is found. If your command appears multiple times in the list, only the first one is found/taken. Therefore, moving its path to the top of the list will ensure that it will be chosen.
Disadvantage: if other duplicate commands appear in those two directories (the two containing the two different mpiexec's), preference for a different command might suddenly be given to the one you didn't want, but this scenario is not very likely.
floquation is offline   Reply With Quote

Reply

Tags
mpi error, parallel calculation


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
decomposePar no field transfert Jeanp OpenFOAM Pre-Processing 3 June 18, 2022 13:01
[OpenFOAM.org] OF2.3.1 + OS13.2 - Trying to use the dummy Pstream library aylalisa OpenFOAM Installation 23 June 15, 2015 15:49
foam-extend_3.1 decompose and pyfoam warning shipman OpenFOAM 3 July 24, 2014 09:14
Working directory via command line Luiz CFX 4 March 6, 2011 21:02


All times are GMT -4. The time now is 12:08.