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

Unable to install OpenFOAM-2.3.0 with MPICH

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 2, 2014, 17:59
Default Unable to install OpenFOAM-2.3.0 with MPICH
  #1
New Member
 
Nilay
Join Date: Jun 2014
Posts: 1
Rep Power: 0
nilayr is on a distinguished road
The environment variables are set here ... in

Code:
# wmake configuration
export WM_DIR=$WM_PROJECT_DIR/wmake
export WM_LINK_LANGUAGE=c++
export WM_OPTIONS=$WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_COMPILE_OPTION
 # base executables/libraries
export FOAM_APPBIN=$WM_PROJECT_DIR/platforms/$WM_OPTIONS/bin
export FOAM_LIBBIN=$WM_PROJECT_DIR/platforms/$WM_OPTIONS/lib
However we are compiling against gnu compilers 4.8.1 and mpich-3.0.4.

A directory gets created with

Code:
OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/interFoam
NOTE THE CAPITAL G in Gcc.

Code:
[shah.nee@discovery2 damBreakFine]$ env | grep LIBBIN
FOAM_EXT_LIBBIN=/shared/apps/openfoam/openfoam-2.3/install/ThirdParty-2.3.0/platforms/linux64gccDPOpt/lib
FOAM_SITE_LIBBIN=/shared/apps/openfoam/openfoam-2.3/install/site/2.3.0/platforms/linux64gccDPOpt/lib
FOAM_USER_LIBBIN=/home/shah.nee/OpenFOAM/shah.nee-2.3.0/platforms/linux64gccDPOpt/lib
FOAM_LIBBIN=/shared/apps/openfoam/openfoam-2.3/install/OpenFOAM-2.3.0/platforms/linux64gccDPOpt/lib
However env has small "g" in linux64gccDPOpt.

Code:
etc/bashrc has
 #- MPI implementation:
#    WM_MPLIB = SYSTEMOPENMPI | OPENMPI | MPICH | MPICH-GM | HPMPI
#               | GAMMA | MPI | QSMPI | SGIMPI
export WM_MPLIB=MPICH
We get the following error:
Code:
[shah.nee@discovery2 damBreakFine]$ cat error_file 
 
--> FOAM FATAL ERROR: 
 --> FOAM FATAL ERROR: 
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 FATAL ERROR: 
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
  
 --> FOAM FATAL ERROR: 
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
 
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
 
FOAM exiting
 [shah.nee@discovery2 damBreakFine]$
What is wrong?

Last edited by wyldckat; June 8, 2014 at 13:59. Reason: Added [CODE][/CODE]
nilayr is offline   Reply With Quote

Old   June 8, 2014, 14:04
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Nilay and welcome to the forum!

I don't know if you've managed to solve this issue already or not, but from the looks of things, I'd say that something has been incorrectly configured in the "OpenFOAM/2.3.0/etc/bashrc" file.

For example, if you run this command:
Code:
echo $WM_COMPILER
does it show "gcc" or "Gcc"? Because the correct setting should be "Gcc".

Therefore, if it shows "gcc", then edit the file "OpenFOAM/2.3.0/etc/bashrc" and fix the line that defines "WM_COMPILER".

Best regards,
Bruno
__________________
wyldckat 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
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04
Unable to run a case with OpenFOAM 1.6-ext that works with OpenFOAM 2.3.0 Jiricbeng OpenFOAM Running, Solving & CFD 15 May 21, 2014 03:52
Prolem installing OpenFOAM Ver 2.3.0 source in Ubuntu 13.1.0 on VMware zandi OpenFOAM Installation 5 March 31, 2014 03:57
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 06:25
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56


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