CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   decomposePare error with parMetis (https://www.cfd-online.com/Forums/openfoam/90025-decomposepare-error-parmetis.html)

tonyuprm June 29, 2011 01:08

decomposePar error with parMetis
 
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!

olhe0002 June 30, 2011 10:34

Can you post your decomposeParDict?

tonyuprm June 30, 2011 23:49

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"
//);


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


joel.lehikoinen July 1, 2011 03:24

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.

olhe0002 July 1, 2011 04:59

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

tonyuprm July 1, 2011 10:24

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

s_braendli July 4, 2011 07:27

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 )

tonyuprm July 5, 2011 15:49

Hi Silvan,

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

Thanks,

Tony


All times are GMT -4. The time now is 20:35.