CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] SHM parallel error. I honestly have no idea

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 27, 2012, 00:03
Default SHM parallel error. I honestly have no idea
  #1
New Member
 
Join Date: Nov 2009
Posts: 28
Rep Power: 17
stark22 is on a distinguished road
I run the following:
blockmesh
decomposePar
snappyHexMesh 2 -overwrite -parallel

Then i get the following error:


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

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::error::abort() in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 Foam::UPstream::init(int&, char**&) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/openmpi-system/libPstream.so"
#3 Foam::argList::argList(int&, char**&, bool, bool) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#4
in "/opt/openfoam211/platforms/linux64GccDPOpt/bin/snappyHexMesh"
#5 __libc_start_main in "/lib/libc.so.6"
#6
in "/opt/openfoam211/platforms/linux64GccDPOpt/bin/snappyHexMesh"
[adam-laptop:04860] *** Process received signal ***
[adam-laptop:04860] Signal: Aborted (6)
[adam-laptop:04860] Signal code: (-6)
[adam-laptop:04860] [ 0] /lib/libc.so.6(+0x33af0) [0x7fa4cff1aaf0]
[adam-laptop:04860] [ 1] /lib/libc.so.6(gsignal+0x35) [0x7fa4cff1aa75]
[adam-laptop:04860] [ 2] /lib/libc.so.6(abort+0x180) [0x7fa4cff1e5c0]
[adam-laptop:04860] [ 3] /opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam5error5abortEv+0x241) [0x7fa4d0d8c771]
[adam-laptop:04860] [ 4] /opt/openfoam211/platforms/linux64GccDPOpt/lib/openmpi-system/libPstream.so(_ZN4Foam8UPstream4initERiRPPc+0x25b) [0x7fa4cfce2eab]
[adam-laptop:04860] [ 5] /opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam7argListC1ERiRPPcbb+0x2bcf) [0x7fa4d0da46df]
[adam-laptop:04860] [ 6] snappyHexMesh() [0x40821b]
[adam-laptop:04860] [ 7] /lib/libc.so.6(__libc_start_main+0xfd) [0x7fa4cff05c4d]
[adam-laptop:04860] [ 8] snappyHexMesh() [0x407b69]
[adam-laptop:04860] *** End of error message ***
Aborte[/PHP]d

here's the decomposePardict:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object decomposeParDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

numberOfSubdomains 2;

method hierarchical;
// method ptscotch;

simpleCoeffs
{
n (2 1 1);
delta 0.001;
}

hierarchicalCoeffs
{
n (2 1 1);
delta 0.001;
order xyz;
}

manualCoeffs
{
dataFile "cellDecomposition";
}


// ************************************************** *********************** //

Thoughts? Thanks everyone.
stark22 is offline   Reply With Quote

Old   November 27, 2012, 10:23
Default
  #2
New Member
 
Join Date: Nov 2009
Posts: 28
Rep Power: 17
stark22 is on a distinguished road
After thinking about this error over night, I think I need to comment out the coefficient subdictionaries that I don't need. And I think I need to add "distributed" at the end of the decomposeParDict.
stark22 is offline   Reply With Quote

Old   November 28, 2012, 04:05
Default
  #3
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 646
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Dear Stark,

your error message says:
attempt to run parallel on 1 processor

And it is true:

You gave:
snappyHexMesh 2 -overwrite -parallel

this means you tell the computer to run a serial process in parallel, which it can not do.

You have to give the command as:

mpirun -np 2 snappyHexMesh -overwrite -parallel

I think there is a tutorial in the user guide that tells you how to run in parallel.

Regards,
Tom
tomf is offline   Reply With Quote

Old   December 3, 2012, 10:39
Default
  #4
New Member
 
Join Date: Nov 2009
Posts: 28
Rep Power: 17
stark22 is on a distinguished road
Hey Tom,

Thanks for the help! I managed to figure it out.
stark22 is offline   Reply With Quote

Old   December 13, 2017, 01:42
Default
  #5
New Member
 
Aaditya Maharashtra
Join Date: Aug 2017
Posts: 7
Rep Power: 9
ruikeradity1 is on a distinguished road
Thanks tomf it works
ruikeradity1 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
[snappyHexMesh] Parallel sHM error vigges OpenFOAM Meshing & Mesh Conversion 12 September 23, 2022 02:23
[snappyHexMesh] Problem with boundaries with sHM in parallel running Loekatoni OpenFOAM Meshing & Mesh Conversion 0 January 24, 2019 08:56
The problem when i use parallel computation for mesh deforming. Hiroaki Sumikawa OpenFOAM Running, Solving & CFD 0 November 20, 2018 03:58
[snappyHexMesh] OpenFoam in parallel with sHM and sFE pradyumnsingh OpenFOAM Meshing & Mesh Conversion 4 October 26, 2018 17:25
Explicitly filtered LES saeedi Main CFD Forum 16 October 14, 2015 12:58


All times are GMT -4. The time now is 05:43.