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

decomposePare error with parMetis

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 29, 2011, 02:08
Default decomposePar error with parMetis
  #1
Member
 
Tony
Join Date: Jun 2010
Posts: 54
Rep Power: 16
tonyuprm is on a distinguished road
Hi all,

Im trying to run decomposePar on my Ubuntu Natty machine with openfoam171. I get the following error when trying to do this:

Code:
--> FOAM FATAL ERROR: 
You are trying to use parMetis but do not have the parMetisDecomp library loaded.
This message is from the dummy parMetisDecomp stub library instead.

Please install parMetis and make sure that libparMetis.so is in your LD_LIBRARY_PATH.
The parMetisDecomp library can then be built in $FOAM_SRC/decompositionMethods/parMetisDecomp


    From function labelList parMetisDecomp::decompose(const labelList&, const pointField&, const scalarField&)
    in file dummyParMetisDecomp.C at line 138.

FOAM exiting
I am really confused and could not find anything on the forum. Anyone has any idea on how to fix this?

Thanks!

Last edited by tonyuprm; June 29, 2011 at 11:44.
tonyuprm is offline   Reply With Quote

Old   June 30, 2011, 11:34
Default
  #2
New Member
 
Oli
Join Date: Apr 2009
Posts: 27
Rep Power: 17
olhe0002 is on a distinguished road
Can you post your decomposeParDict?
olhe0002 is offline   Reply With Quote

Old   July 1, 2011, 00:49
Default
  #3
Member
 
Tony
Join Date: Jun 2010
Posts: 54
Rep Power: 16
tonyuprm is on a distinguished road
Here it is,

Thanks!

Code:
/*-------------------------------*- C++ -*---------------------------------*\
|    =========                                                              |
|    \\      /     OpenFOAM                                                 |
|     \\    /                                                               |
|      \\  /       The Open Source CFD Toolbox                              |
|       \\/                                        http://www.OpenFOAM.org  |
\*-------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    note        "mesh decomposition control dictionary";
    location    "system";
    object      decomposeParDict;
}

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

numberOfSubdomains  6;
method          parMetis;
preservePatches (recycle_1 recycle_2);

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

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

metisCoeffs
{
    processorWeights
    (
        1
        1
        1
        1
    1
    1
    );
}

scotchCoeffs
{
    processorWeights
    (
        1
        1
        1
        1
    );
//    writeGraph  true;
//    strategy "b";
}

manualCoeffs
{
    dataFile    "decompositionData";
}


//// Is the case distributed
distributed     no;
//// Per slave (so nProcs-1 entries) the directory above the case.
//roots           
//(
//    "/tmp"
//    "/tmp"
//);


// ************************************************************************* //
tonyuprm is offline   Reply With Quote

Old   July 1, 2011, 04:24
Default
  #4
New Member
 
Joel Lehikoinen
Join Date: Jun 2011
Posts: 26
Rep Power: 15
joel.lehikoinen is on a distinguished road
You could try changing the method to something else, say "simple" or "hiearchical" for example. Also, I believe that your number of subdomains should equal the product of the elements of n; i.e. in your case the number of subdomains should be set to 4.
joel.lehikoinen is offline   Reply With Quote

Old   July 1, 2011, 05:59
Default
  #5
New Member
 
Oli
Join Date: Apr 2009
Posts: 27
Rep Power: 17
olhe0002 is on a distinguished road
I think you have to use parMetis when doing a snappyHexMesh in parallell (?).
For running a simulation i would use metis or hierachical, as joel mentioned before
olhe0002 is offline   Reply With Quote

Old   July 1, 2011, 11:24
Default
  #6
Member
 
Tony
Join Date: Jun 2010
Posts: 54
Rep Power: 16
tonyuprm is on a distinguished road
Hi all,

Thanks for your replies. Thats what I want to do, run snappyHexMesh in parallel. It wont run with metis or scotch. Other options work fine when decomposing, but parMetis is the one Im interested in right now. Im open to suggestions for running snappyHexMesh in parallel.

Thanks,

Tony
tonyuprm is offline   Reply With Quote

Old   July 4, 2011, 08:27
Default
  #7
New Member
 
Silvan Brändli
Join Date: Aug 2009
Posts: 27
Rep Power: 17
s_braendli is on a distinguished road
Did you follow the instructions from the error message? ( see whether libparMetis.so is present on your system and correctly linked in LD_LIBRARY_PATH )
s_braendli is offline   Reply With Quote

Old   July 5, 2011, 16:49
Default
  #8
Member
 
Tony
Join Date: Jun 2010
Posts: 54
Rep Power: 16
tonyuprm is on a distinguished road
Hi Silvan,

Thanks for your reply. The library is in that location, specifically in "/opt/openfoam171/lib/linux64GccDPOpt/dummy".

Thanks,

Tony
tonyuprm 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
GPL license compatible with ParMetis guillaume OpenFOAM 3 August 8, 2018 05:48
ParMETIS Rob Kunz Main CFD Forum 2 November 20, 2008 17:20
ParMetis for parallel decomposing bastil OpenFOAM Running, Solving & CFD 0 May 12, 2008 10:54
BuildingLinking of ParMETIS and metis50pre2 mwild OpenFOAM Bugs 1 January 28, 2008 17:05
BuildingLinking of ParMETIS and metis50pre2 mwild OpenFOAM Installation 0 January 28, 2008 05:55


All times are GMT -4. The time now is 16:06.