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

Installation on Rocks 5.4

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2011, 14:54
Default Installation on Rocks 5.4
  #1
Member
 
Tony
Join Date: Jun 2010
Posts: 54
Rep Power: 15
tonyuprm is on a distinguished road
Hi all,

I'm trying to install OpenFOAM 1.7.1 on a Rocks 5.4 Cluster. Im installing from source in the /opt directory. Im getting several errors. The first errors are related to MPI. Attached is the log file.

make.log.tar.gz

Thanks in advance!
tonyuprm is offline   Reply With Quote

Old   January 21, 2011, 15:47
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Tony,

OK, two things:
  1. What's the gcc version you are using in Rocks 5.4? According to DistroWatch.com, Rocks 5.4 installs by default gcc 4.1.2 and the minimum required by OpenFOAM 1.7 is gcc 4.3.?.
  2. It doesn't seem like you unpacked the ThirdParty package. This means that it won't build: OpenMPI, libscotch, libmetis. The first one is for MPI and the two others are for being able to divide the meshes with smart algorithms.
Did you read the whole instructions page: Source Pack Installation
In special, you should have noticed the sections:
  • Unpacking the Sources (where it also talks about the ThirdParty package)
  • Checking the System (where it talks about the gcc version )

I don't have experience with know Rocks, so I don't know if it provides more recent gcc versions or not, nor do I know which MPI toolbox it provides. Same goes for the libraries Metis and Scotch.

In case Rocks doesn't provide a more recent gcc, then try the latest build scripts in this blog page: Automated scripts for building gcc 4.4.x and 4.5.x for using with OpenFOAM 1.7 series
Oh, before I forget, either one of those builds scripts assume that you have the ThirdParty folder...

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 22, 2011, 22:56
Default
  #3
Member
 
Tony
Join Date: Jun 2010
Posts: 54
Rep Power: 15
tonyuprm is on a distinguished road
Thanks for your reply Bruno. The gcc package Rocks has by default is 4.1.2. The newer version for gcc is in a package called gcc44. This is installed and the version is 4.4.0. I did not have the Third-Party directory. I unpacked this directory as well and ran .Allwmake again. That didnt work. I tried changing the $WM_DIR/rules/linux64Gcc/c++ as you suggested for Fedora installation in another post which had helped me before. That didnt work either. The log file couldnt fit in one file so here it is split up.

make.log1.tar.gz

make.log2.tar.gz

make.log3.tar.gz

Thanks,

Tony
tonyuprm is offline   Reply With Quote

Old   January 23, 2011, 00:26
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Tony,

I ended up investigating a bit more about Rocks and found out that it's based on CentOS, who in turn is based on RedHat Enterprise Linux. And the thread that has the solution you need is related to the latter one: OpenFOAM install on RHEL 5.5

edit: You should check which MPI library/toolbox your Rocks installation is using! If it uses OpenMPI by default, you can simply change from OPENMPI to SYSTEMOPENMPI in the file "OpenFOAM-1.7.1/etc/bashrc". If it uses something else, check that relevant area in that "OpenFOAM-1.7.1/etc/bashrc" file, as well in the relevant MPI area in "OpenFOAM-1.7.1/etc/settings.sh".

edit 2 (trying to save forum space ): I forgot to mention that since you'll be compiling with a very different gcc version, you better do a clean up before rebuilding again with the new compiler. For that, run:
Code:
foam
wcleanAll
foam3rdParty
./Allclean
At this stage, any errors that might be outputted can be disregarded. Those commands that start with "foam" are aliases defined when the OpenFOAM environment is activated (when sourcing OpenFOAM's "bashrc" file); the first one gets you to the main folder for OpenFOAM and the second one to the respective ThirdParty folder.

Best regards,
Bruno
__________________

Last edited by wyldckat; January 23, 2011 at 17:13. Reason: see "edit:" and "edit 2:"
wyldckat is offline   Reply With Quote

Old   January 25, 2011, 13:59
Default
  #5
Member
 
MSR CHANDRA MURTHY
Join Date: Mar 2009
Posts: 33
Rep Power: 17
chandramurthy is on a distinguished road
I have been working successfully (including paraFoam) on rocks 4.3 HPC cluster with openfoam 1.4.1, 1.5, 1.6.x versions. Aslo, recently moved on to centos 5.4/5.5 amd64 arch.
it's a bit more complicated to setup the thing. drop me a mail, i can explain.
chandramurthy is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
Installation problems indy OpenFOAM Installation 7 April 3, 2009 10:40
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07
Installation problems shellbell1999 OpenFOAM Installation 9 April 6, 2006 14:29
CFX 5.4 cannot restart with 5.3 format Bart Prast CFX 6 September 14, 2000 16:05


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