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

Problem with starting parallel case in OpenFOAM 11

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2023, 05:30
Default Problem with starting parallel case in OpenFOAM 11
  #1
New Member
 
Ilia Khristoforov
Join Date: Oct 2023
Posts: 3
Rep Power: 2
cececerece is on a distinguished road
Hi Everyone!

I am trying to run parallel case in OpenFOAM 11 on WSL2. I have 8 cores, however, I want to run the case on 6 cores.

The code can be found here. DecomposeParDict seems correct, and the case without it is working perfectly fine. Also, all the checks stated in the OpenFOAM tutorial are done and MPI is enabled.

When I try to run mpirun -np 6 foamRun -parallel, I get following traceback:

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

From function static bool Foam::UPstream::init(int&, char**&, bool)
in file UPstream.C at line 108.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::UPstream::init(int&, char**&, bool) at ??:?
#3 Foam::argList::argList(int&, char**&, bool, bool, bool) at ??:?
#4 ? in "/opt/openfoam11/platforms/linux64GccDPInt32Opt/bin/foamRun"
#5 ? in "/lib/x86_64-linux-gnu/libc.so.6"
#6 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#7 ? in "/opt/openfoam11/platforms/linux64GccDPInt32Opt/bin/foamRun"
[DESKTOP-IS5RTTG:91118] *** Process received signal ***
[DESKTOP-IS5RTTG:91118] Signal: Aborted (6)
[DESKTOP-IS5RTTG:91118] Signal code: (-6)
[DESKTOP-IS5RTTG:91118] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f0ccb17c520]
[DESKTOP-IS5RTTG:91118] [ 1] /lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x12c)[0x7f0ccb1d09fc]
[DESKTOP-IS5RTTG:91118] [ 2] /lib/x86_64-linux-gnu/libc.so.6(raise+0x16)[0x7f0ccb17c476]
[DESKTOP-IS5RTTG:91118] [ 3] /lib/x86_64-linux-gnu/libc.so.6(abort+0xd3)[0x7f0ccb1627f3]
[DESKTOP-IS5RTTG:91118] [ 4] /opt/openfoam11/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam5error5abortEv+0x2db)[0x7f0ccb99adbb]
[DESKTOP-IS5RTTG:91118] [ 5] /opt/openfoam11/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so(_ZN4Foam8UPstream4initERiRPPcb+0x3e9 )[0x7f0ccabb6d19]
[DESKTOP-IS5RTTG:91118] [ 6] /opt/openfoam11/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam7argListC1ERiRPPcbbb+0x758)[0x7f0ccb9b87b8]
[DESKTOP-IS5RTTG:91118] [ 7] foamRun(+0x3bbd)[0x55761401fbbd]
[DESKTOP-IS5RTTG:91118] [ 8] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7f0ccb163d90]
[DESKTOP-IS5RTTG:91118] [ 9] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7f0ccb163e40]
[DESKTOP-IS5RTTG:91118] [10] foamRun(+0x4765)[0x557614020765]
[DESKTOP-IS5RTTG:91118] *** End of error message ***


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

From function static bool Foam::UPstream::init(int&, char**&, bool)
in file UPstream.C at line 108.

FOAM aborting


================================================== =================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= PID 91114 RUNNING AT DESKTOP-IS5RTTG
= EXIT CODE: 9
= CLEANING UP REMAINING PROCESSES
= YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
================================================== =================================
YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Terminated (signal 15)
This typically refers to a problem with your application.
Please see the FAQ page for debugging suggestions
What should I fix in order to run the code on my PC? Thank you all in advance!!
cececerece is offline   Reply With Quote

Old   November 25, 2023, 11:08
Default
  #2
New Member
 
Ilia Khristoforov
Join Date: Oct 2023
Posts: 3
Rep Power: 2
cececerece is on a distinguished road
Unfortunately, the problem was with WSL. I tried to run the case on Ubuntu and it worked
cececerece is offline   Reply With Quote

Old   November 25, 2023, 11:31
Default
  #3
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,169
Rep Power: 27
Yann will become famous soon enough
Hello,

I just tried out of curiosity, and it works for me.
OpenFOAM-11 on WSL2 running Ubuntu 20.04.

Not sure what is wrong for you, but I thought you might want to know it is supposed to work.

Yann
Yann is offline   Reply With Quote

Reply

Tags
openfoam 11, parallel, parallel decomposepar


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
Problem with parallel run on OpenFoam stater OpenFOAM Running, Solving & CFD 0 March 15, 2023 09:05
what is problem my OpenFoam setting? Lee97 Main CFD Forum 0 September 1, 2022 08:57
Problem running OpenFOAM 2.2.x in parallel in Centos 5 lvalvare OpenFOAM Running, Solving & CFD 33 December 9, 2020 08:44
OpenFOAM 4.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 2 October 6, 2017 05:40
Something weird encountered when running OpenFOAM in parallel on multiple nodes xpqiu OpenFOAM Running, Solving & CFD 2 May 2, 2013 04:59


All times are GMT -4. The time now is 22:17.