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

Installation Procedure of OF220 on Ubuntu 10.04LTS

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

Like Tree8Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   June 27, 2013, 14:57
Default
  #21
Member
 
Dinesh Balaji
Join Date: Oct 2012
Posts: 43
Rep Power: 4
DineshramBalaji is on a distinguished road
Hi Bruno,

these are the results for the commands you gave me to check.

SYSTEMOPENMPI

/usr/lib/openmpi


/usr/bin/mpicc

/usr/bin/mpirun

seems like the file is actually located in bin folder.... just that the bashrc couldn't locate it
DineshramBalaji is offline   Reply With Quote

Old   June 27, 2013, 17:09
Default
  #22
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 Dinesh,

I didn't have a clear enough head in the past few days, but now I've clearly seen the possible problem. Try running this command:
Code:
echo $OPAL_PREFIX
If it shows you this path:
Code:
/home/bluesim/OpenFOAM/ThirdParty-2.2.0/platforms/linux64Gcc/openmpi-1.6.3/
then it's because you are initializing the OpenFOAM shell environment twice, once with "WM_MPLIB=OPENMPI" and another with "WM_MPLIB=SYSTEMOPENMPI".

If this is the case, then edit the "~/.bashrc" with a text editor and remove the first line that refers to OpenFOAM, as I indicated in the post #18:
Quote:
Originally Posted by wyldckat View Post
Code:
source $HOME/OpenFOAM/OpenFOAM-2.2.0/etc/bashrc
source $HOME/OpenFOAM/OpenFOAM-2.2.0/etc/bashrc WM_NCOMPPROCS=4  WM_MPLIB=SYSTEMOPENMPI foamCompiler=ThirdParty  WM_COMPILER=Gcc46
If you do not know what file I'm referring to, then run this command to see its path:
Code:
find ~/.bashrc
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 27, 2013, 17:25
Default
  #23
Member
 
Dinesh Balaji
Join Date: Oct 2012
Posts: 43
Rep Power: 4
DineshramBalaji is on a distinguished road
Hi Bruno,

Yeah. there were two references and I commented out the first one. Thanks for the help again.
DineshramBalaji is offline   Reply With Quote

Old   July 13, 2013, 04:46
Default
  #24
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,592
Rep Power: 24
ngj will become famous soon enoughngj will become famous soon enough
Good morning,

I have tried following the above guide for compiling OpenFoam-2.2.1. It has been successful. For people who already have the 2.2.0 or 2.2.x installed on their machine, the following modification could save a bit of time:

Instead of downloading and compiling all the ThirdParty software, merely do the following in your OpenFOAM-directory for a 2.2.0 version (modify accordingly, if you have 2.2.x.)

Code:
ln -s ThirdParty-2.2.0 ThirdParty-2.2.1
This create a symbolic link to the already working ThirdParty compilation, and the compilation of OpenFoam-2.2.1 works smoothly.

Kind regards

Niels
wyldckat likes this.
ngj is online now   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
Openfoam 2.1 installation in ubuntu 12.04 jsm OpenFOAM Installation 11 May 7, 2012 04:56
openFOAM installation in ubuntu 11.10 kirubhakaran OpenFOAM Installation 5 February 17, 2012 03:16
Installation of OpenFOAM-1.6 on Ubuntu 9.10 marval OpenFOAM Installation 2 March 17, 2010 09:33
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 04:52.