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

OpenFoam 2.0.0 installation + ICC + Rocks Cluster

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2011, 15:03
Default OpenFoam 2.0.0 installation + ICC + Rocks Cluster
  #1
New Member
 
DanielVS
Join Date: Jul 2011
Posts: 3
Rep Power: 14
chinper is on a distinguished road
Hi all,

I tried to install openfoam from sources over Rocks Cluster 5.4 + Intel cluster studio without sucess.

I'm getting many warnings an errors like these:

ipo: warning #11012: unable to find -lfiniteVolume
ipo: warning #11012: unable to find -lmeshTools
ipo: warning #11012: unable to find -lsurfMesh
ipo: warning #11012: unable to find -ltriSurface
ipo: warning #11012: unable to find -llagrangian
ipo: warning #11012: unable to find -lconversion

in addition, when I execute wmSET I get this:

Warning in /root/OpenFOAM/OpenFOAM-2.0.0/etc/config/settings.sh:
Unknown OpenFOAM compiler type 'Icc'
Please check your settings

make.log is attached. Appreciate your help on this.
Attached Files
File Type: zip make.zip (22.9 KB, 12 views)
chinper is offline   Reply With Quote

Old   July 11, 2011, 17:53
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 Daniel and welcome to the forum!

OK, there seems to be a few of problems, according to the output you posted:
  • flex was unable to write to the disk. This might mean permission problems or maybe you're trying to build on a remote folder and there was a sync problem.
  • Somehow you didn't choose the Icc option properly and it still tried to build with Gcc. How did you set that option?
My advice, do not build OpenFOAM as root! If you do want to build OpenFOAM so it's visible to all users, then do the following steps:
  • Before building OpenFOAM, run this command on OpenFOAM's base folder:
    Code:
    chown -R youruser:yourgroup /opt/OpenFOAM
    youruser:yourgroup is usually your user name and the group is "users", but I'm not sure if this is how Rocks does things by default.
    Then login into your user account and build things from there. This way you avoid some serious mistake of deleting other files of the system.
  • After building OpenFOAM and verifying that all is well, change the permissions back like this:
    Code:
    chown -R root:root /opt/OpenFOAM
    This way only root can modify files from here.
The other possibility is to build on your home folder and after all is done, then copy to the global folder as root and changing permissions were necessary, including the adaptations necessary in OpenFOAM's etc/bashrc file.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 11, 2011, 18:42
Default
  #3
New Member
 
DanielVS
Join Date: Jul 2011
Posts: 3
Rep Power: 14
chinper is on a distinguished road
Hi Bruno,

In OpenFOAM-2.0.0/etc/bashrc I changed the line WM_COMPILER to

#- Compiler:
# WM_COMPILER = Gcc | Gcc43 | Gcc44 | Gcc45 | Gcc46 | Clang | Icc (Intel icc)
export WM_COMPILER=Icc



#- MPI implementation:
# WM_MPLIB = SYSTEMOPENMPI | OPENMPI | MPICH | MPICH-GM | HPMPI
# | GAMMA | MPI | QSMPI
export WM_MPLIB=IMPI

in config/settings.sh changed:


# Communications library
# ~~~~~~~~~~~~~~~~~~~~~~

unset MPI_ARCH_PATH MPI_HOME FOAM_MPI_LIBBIN

case "$WM_MPLIB" in


IMPI)
export MPI_HOME=/usr/local/opt/intel/impi/4.0.1.007/intel64
export MPI_ARCH_PATH=$MPI_HOME
_foamAddPath $MPI_ARCH_PATH/bin
_foamAddLib $MPI_ARCH_PATH/lib
export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/impi
;;


Best,
chinper is offline   Reply With Quote

Old   July 12, 2011, 18:00
Default
  #4
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
Hi David,

Interesting... OK, I've re-read both of your posts and what comes to mind is that the environment variable foamCompiler is being set to either ThirdParty or OpenFOAM somewhere in etc/bashrc or etc/config/settings.sh or somewhere else. This is the only reason why it would say:
Quote:
Unknown OpenFOAM compiler type 'Icc'
Please check your settings
What does this output:
Code:
echo $foamCompiler
If it outputs nothing, edit both files or any other ones you might have modified and check if you did this modification.

The other thing is if you modified anything at the folders wmake/rules/linuxIcc or wmake/rules/linux64Icc, which is where the names of the compilers are hard-coded for 32 and 64bit respectively.

I think these should be the places that need your attention... since you are using wmSET... although starting a new terminal always clears up any doubts of a bad environment contaminating everything...

Best regards,
Bruno
DeeDee likes this.
__________________
wyldckat is offline   Reply With Quote

Old   July 12, 2011, 22:03
Default
  #5
New Member
 
DanielVS
Join Date: Jul 2011
Posts: 3
Rep Power: 14
chinper is on a distinguished road
Hi Bruno,

You're correct, the variable foamCompiler is empty


Bashrc looks like:

#- Compiler location:
# foamCompiler= system | ThirdParty (OpenFOAM)
foamCompiler=ThirdParty

I can't see any export for this variable. do I have to add it? I didn't see it in any additional place.

and no changes were made in wmake/rules/linuxIcc or wmake/rules/linux64Icc


Best,


Daniel
chinper is offline   Reply With Quote

Old   July 13, 2011, 16:00
Default
  #6
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
Hi Daniel,

Simply change the line:
Code:
foamCompiler=ThirdParty
To this one:
Code:
foamCompiler=system
Start a new terminal or run wmSET and you should be ready to go!

Good luck!
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
2.0, install, intel compiler


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
OpenFOAM 1.7 installation on Redhat linux maxims OpenFOAM Installation 2 November 30, 2012 04:29
OpenFoam 2.0.0 installation Jan_Peters OpenFOAM Installation 86 April 27, 2012 05:32
Parallel cluster solving with OpenFoam? P2P Cluster? hornig OpenFOAM Programming & Development 8 December 5, 2010 16:06
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25


All times are GMT -4. The time now is 13:49.