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

Error in running in parallel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2016, 06:18
Default Error in running in parallel
  #1
New Member
 
Dennis
Join Date: Oct 2016
Posts: 11
Rep Power: 9
Deagle is on a distinguished road
Hello!

Currently I'm trying to run a simulation of simpleFoam in parallel, but I'm running into an error for which I haven't found a solution and it's been stalling my progress for some time now. It would be really great if you could indicate where the problem lies.

The relevant steps I have followed up to the error:
1. Transform .unv file to polymesh. The mesh checks out and looks good in paraView.
2. Decompose the solution setup into a number (I used 4 in this case) processors, which went without problems.
3. Run simpleFoam in parallel using "mpirun -np 4 simpleFoam -parallel"

After running the command in step 3 the error shows up 4 times:

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

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 79.
I also tried decomposing a cavity tutorial case, with the same error. SO my guess would be something goes wrong in either decomposing the case or with the mpirun command.

Does anybody have a clue where this could come from?

Thank you.

Dennis
Deagle is offline   Reply With Quote

Old   November 28, 2016, 06:27
Default
  #2
New Member
 
Dennis
Join Date: Oct 2016
Posts: 11
Rep Power: 9
Deagle is on a distinguished road
Probably useful:
-When running icoFoam or simpleFoam there doesn't seem to be a problem.
- I'm using the latest version of OpenFOAM on windows 7, downloaded from http://www.cfdsupport.com/openfoam-for-windows.htm

Also
When trying to run the same (both cavity decomposed and my case) on CAELinux, the cavity runs both with and without MPIRUN without error. Doing exactly the same with my smpleFoam case gives the following error:

Code:
--> FOAM FATAL IO ERROR: 
Attempt to return dictionary entry as a primitive

file: /opt/openfoam211/tutorials/DN25/system/fvSolution::relaxationFactors::equations from line 60 to line 61.

    From function ITstream& primitiveEntry::stream() const
    in file db/dictionary/dictionaryEntry/dictionaryEntry.C at line 82.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1  Foam::IOerror::abort() in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2  Foam::dictionaryEntry::stream() const in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#3  Foam::solution::read(Foam::dictionary const&) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#4  Foam::solution::solution(Foam::objectRegistry const&, Foam::fileName const&) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#5  Foam::fvMesh::fvMesh(Foam::IOobject const&) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#6  
 in "/opt/openfoam211/platforms/linux64GccDPOpt/bin/simpleFoam"
#7  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#8
Any idea what the source of this problem could be? I haven't changed anything in the files, so my guess would be the versions might be incompatible.
Deagle is offline   Reply With Quote

Old   November 29, 2016, 03:08
Default
  #3
New Member
 
Dennis
Join Date: Oct 2016
Posts: 11
Rep Power: 9
Deagle is on a distinguished road
Found the answer: apparently the windows version from CFD support uses the mpiexec.exe package instead of mpirun.

http://www.cfd-online.com/Forums/ope...llel-case.html
Deagle is offline   Reply With Quote

Reply


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
error while running in parallel using openmpi on local mc 6 processors suryawanshi_nitin OpenFOAM 10 February 22, 2017 21:33
Running mapFields with Parallel Source and Parallel Target RDanks OpenFOAM Pre-Processing 4 August 2, 2016 05:24
running OpenFoam in parallel vishwa OpenFOAM Running, Solving & CFD 22 August 2, 2015 08:53
Unconsistent parallel jobs running time arnaud6 OpenFOAM Running, Solving & CFD 4 February 10, 2015 12:42
Problems running in parallel - missing controlDict Argen OpenFOAM Running, Solving & CFD 4 June 7, 2012 03:50


All times are GMT -4. The time now is 23:24.