CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

SHM parallel error. I honestly have no idea

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

Reply
 
LinkBack Thread Tools 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: 7
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: 7
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: Delft, Netherlands
Posts: 216
Rep Power: 10
tomf is on a distinguished road
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: 7
stark22 is on a distinguished road
Hey Tom,

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

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parallel sHM error vigges OpenFOAM Native Meshers: snappyHexMesh and Others 8 March 18, 2013 07:27
Parallel processing problem newbie29 OpenFOAM Running, Solving & CFD 1 June 22, 2012 04:23
Problems running in parallel - missing controlDict Argen OpenFOAM Running, Solving & CFD 4 June 7, 2012 03:50
parallel performance on BX900 uzawa OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 3 September 5, 2011 15:52
Performance of GGI case in parallel hannes OpenFOAM Running, Solving & CFD 26 August 3, 2011 03:07


All times are GMT -4. The time now is 21:32.