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

Parallel Building Error

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 12, 2013, 09:17
Default Parallel Building Error
  #1
Senior Member
 
sfigato's Avatar
 
Marco Longhitano
Join Date: Jan 2013
Location: Aachen
Posts: 103
Rep Power: 4
sfigato is on a distinguished road
Send a message via Skype™ to sfigato
Hi Foamers,

I would like to run in parallel my test case. I am using simpleFoam solver. So, This is my dict file:


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

numberOfSubdomains 4;

method scotch;

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

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

metisCoeffs
{
processorWeights ( 1 1 1 1 );
}

manualCoeffs
{
dataFile "";
}

distributed no;

roots ( );


// ************************************************** *********************** //
After run the decomposePar utility..I got thi error:

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

Please install scotch and make sure that libscotch.so is in your LD_LIBRARY_PATH.
The scotchDecomp library can then be built in $FOAM_SRC/parallel/decompose/decompositionMethods/scotchDecomp


From function labelList scotchDecomp::decompose(const pointField&, const scalarField&)
in file dummyScotchDecomp.C at line 113.


Then, I switched scotch with simple and the decomposition works fine. Nevertheless, when I run my mpirun I got this error:

Quote:
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

From function UPstream::init(int& argc, char**& argv)
in file UPstream.C at line 37.

FOAM exiting


Can anyone help me, please?


I deepen the problems. During the building of scotch and dummy, I do not have mpi.h and scotch.h!

My OpenFOAM version is 2.1.x anyone knows if there is an unsolved bug about parallel computation?


Regards
Marco
sfigato is offline   Reply With Quote

Old   February 12, 2013, 17:20
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Marco,

Which Linux distribution are you using and which installation instructions did you follow?

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   February 14, 2013, 02:32
Default
  #3
Senior Member
 
sfigato's Avatar
 
Marco Longhitano
Join Date: Jan 2013
Location: Aachen
Posts: 103
Rep Power: 4
sfigato is on a distinguished road
Send a message via Skype™ to sfigato
Goodmorning Bruno,

first of all sorry for the late response (due to work constrains)!

My Linux distribution is OpenSUSE 12.2. I followed the OpenFOAM web-site installation instruction except for the paraview bulding. Regarding the lattest, I followed the ones in OpenFOAM wiki (that you have suggested to me)!

Moreover, I compiled both debug and OPT versions and I created two alias: startFoam and starFoamToDebug!

Regards
Marco
sfigato is offline   Reply With Quote

Old   February 15, 2013, 08:00
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Marco,

Do you know if you are using the Open-MPI version supplied by OpenFOAM, or using the one provided by openSUSE? To know which one, try running the following commands:
Code:
which mpirun
mpirun --version
echo $WM_MPLIB
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   February 15, 2013, 08:08
Default
  #5
Senior Member
 
sfigato's Avatar
 
Marco Longhitano
Join Date: Jan 2013
Location: Aachen
Posts: 103
Rep Power: 4
sfigato is on a distinguished road
Send a message via Skype™ to sfigato
Hi Bruno,

this is the output:

Quote:

ifas@lg-208-linux:~> which mpirun
/usr/lib64/mpi/gcc/openmpi/bin/mpirun
ifas@lg-208-linux:~> mpirun --version
mpirun (Open MPI) 1.5.4

Report bugs to http://www.open-mpi.org/community/help/
ifas@lg-208-linux:~> echo $WM_MPLIB
OPENMPI
ifas@lg-208-linux:~>
Regards
Marco
sfigato is offline   Reply With Quote

Old   February 15, 2013, 08:30
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Marco,

Then something went wrong while it tried to build Open-MPI 1.5.3 that OpenFOAM provides. Do you have the folder "ThirdParty-2.1.x" placed next to "OpenFOAM-2.1.x"?

Either way, add this to the end of your aliases commands:
Code:
WM_MPLIB=SYSTEMOPENMPI
Or edit the file "OpenFOAM-2.1.x/etc/bashrc" and change the respective line.

Start a new terminal. Then run Allwmake once again in the main OpenFOAM-2.1.x folder. This way you'll use openSUSE's own Open-MPI 1.5.4.

You can check for some more hints here: http://openfoamwiki.net/index.php/In...#openSUSE_12.2

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   February 15, 2013, 08:44
Default
  #7
Senior Member
 
sfigato's Avatar
 
Marco Longhitano
Join Date: Jan 2013
Location: Aachen
Posts: 103
Rep Power: 4
sfigato is on a distinguished road
Send a message via Skype™ to sfigato
Hi Bruno,

I have installed OpenFOAM as root and I have both folders (third and FOAM) in root/opt. I have two bashrc files, one for the debug version and one for the opt version! What I have to edit exactly?

Sorrry,.but I did not understand properly and I am not so familiar with linux!

This my bashrc file in my opt/OpenFOAM/etc/

Quote:
#- MPI implementation:
# WM_MPLIB = SYSTEMOPENMPI | OPENMPI | MPICH | MPICH-GM | HPMPI
# | GAMMA | MPI | QSMPI
export WM_MPLIB=OPENMPI
Regards
Marco
sfigato is offline   Reply With Quote

Old   February 15, 2013, 08:59
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Marco,

Yep, that's the line... change in both files to:
Code:
export WM_MPLIB=SYSTEMOPENMPI
Then start a new terminal and activate respective environment and run Allwmake once again, so that it will link up to the correct MPI library and build the missing files.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   February 15, 2013, 10:05
Default
  #9
Senior Member
 
sfigato's Avatar
 
Marco Longhitano
Join Date: Jan 2013
Location: Aachen
Posts: 103
Rep Power: 4
sfigato is on a distinguished road
Send a message via Skype™ to sfigato
Hi Bruno,

I did for the opt version!! It works fine (I think that..)! I do not have a test case ready to try it!

By the way, do I need to specify the number of processor ?(..and how can I check how many processor there are in my machine?)

Regards
Marco
sfigato is offline   Reply With Quote

Old   February 15, 2013, 11:20
Default
  #10
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Marco,

Uhm... Google?

In a nutshell:
  • Number of CPUs:
    Code:
    lscpu
    #or the more extensive list
    cat /proc/cpuinfo
  • To launch the solver/utility in parallel, simply use:
    Code:
    foamJob -p application_name
    For more options:
    Code:
    foamJob -help
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   February 15, 2013, 11:31
Default
  #11
Senior Member
 
sfigato's Avatar
 
Marco Longhitano
Join Date: Jan 2013
Location: Aachen
Posts: 103
Rep Power: 4
sfigato is on a distinguished road
Send a message via Skype™ to sfigato
Hi Bruno,

Google sometimes betrays..you do not!! Anyway, thanks for your kindness!

Best Regards
Marco
sfigato is offline   Reply With Quote

Old   February 15, 2013, 11:39
Default
  #12
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Marco,
Quote:
Originally Posted by sfigato View Post
Google sometimes betrays..you do not!! Anyway, thanks for your kindness!
You're welcome!

But keep in mind that I (as any other human) can get cranky! For which Google tells that:
Quote:
crank·y
/ˈkraNGkē/

Adjective
Ill-tempered; irritable.


edit: And I forgot to mention that Google has more free time than I do

Have fun!
Bruno

Last edited by wyldckat; February 15, 2013 at 11:48. Reason: see "edit:"
wyldckat 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
polynomial thermophysical properties II sebastian OpenFOAM Running, Solving & CFD 53 April 10, 2014 05:45
Compile calcMassFlowC aurore OpenFOAM Programming & Development 12 March 18, 2014 05:22
Error compiling OpenFOAM-1.6-ext Canesin OpenFOAM Installation 136 April 25, 2012 11:22
c++ libraries and solver compiling vaina74 OpenFOAM Installation 13 February 3, 2012 18:43
attach/detach (valve opening/closing) phsieh2005 OpenFOAM Running, Solving & CFD 2 March 21, 2009 06:18


All times are GMT -4. The time now is 04:23.