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

installing v1.6 and keeping v1.5

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 31, 2009, 10:33
Default installing v1.6 and keeping v1.5
  #1
New Member
 
Gavin J. Pringle
Join Date: Apr 2009
Location: Edinburgh, UK
Posts: 6
Rep Power: 17
Gavin is on a distinguished road
Send a message via Skype™ to Gavin
Hi,

I've installed v1.5 on HECToR, the Cray XT4 in Edinburgh, UK, and it appears to be working fine, with
../OpenFOAM/OpenFOAM-1.5
../OpenFOAM/ThirdParty
as expected.

I now plan to install v1.6 in my OpenFOAM directory tree, so that my tree would become
../OpenFOAM/OpenFOAM-1.5
../OpenFOAM/OpenFOAM-1.6
../OpenFOAM/ThirdParty
as expected.

However, v1.6 comes with an updated version of ThirdParty.

Is v1.6's ThirdParty backwards compatible? In other words, if I get rid of
v1.5's ThirdParty directory and replace it with v1.6's ThirdParty directory,
will v1.5 still work (perhaps after recompiling/relinking)?

Alternatvely, do I need v1.6's ThirdParty to run v1.6 or can I simply use
v1.5's ThirdParty?

Cheers,
Gavin
Gavin is offline   Reply With Quote

Old   July 31, 2009, 10:47
Default
  #2
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 215
Rep Power: 18
santos is on a distinguished road
Send a message via Skype™ to santos
I think you wont have any problems, mainly because OF 1.6 creates a ThirdParty-1.6 directory, so it wont conflict with ThirdParty from 1.5.

Regards,
Jose Santos
santos is offline   Reply With Quote

Old   July 31, 2009, 12:13
Default
  #3
Member
 
Julien Schaguene
Join Date: Apr 2009
Location: France
Posts: 55
Rep Power: 17
Schag is on a distinguished road
Is he not going to have conflict for application names? (e.g. interFoam?)

I'm also interested...
Schag is offline   Reply With Quote

Old   July 31, 2009, 12:18
Default
  #4
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 215
Rep Power: 18
santos is on a distinguished road
Send a message via Skype™ to santos
I dont think so, because you will source a different config file in your .bashrc depending on the OF version you want to run (1.5 or 1.6). That way, you will either use 1.5 or 1.6 applications.

.bashrc line:
. $HOME/OpenFOAM/OpenFOAM-1.6_or_5/etc/bashrc

Regards,
Jose Santos
santos is offline   Reply With Quote

Old   July 31, 2009, 12:29
Default
  #5
Senior Member
 
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 251
Rep Power: 18
Ahmed is on a distinguished road
the point to consider is sourcing the correct bashrc for each version, bashrc for version 1.5 will look for ThirdParty but bashrc for version 1.6 will look for ThirdParty-1.6
good luck
Ahmed is offline   Reply With Quote

Old   July 31, 2009, 12:57
Default
  #6
Senior Member
 
Rishi .
Join Date: Mar 2009
Posts: 149
Rep Power: 17
hellorishi is on a distinguished road
Bit caution.

cmake is apparently missing from ThirdParty-1.6

http://www.cfd-online.com/Forums/ope...rty-1-6-a.html

regards,
Rishi
hellorishi is offline   Reply With Quote

Old   October 22, 2009, 04:00
Default Same problem
  #7
New Member
 
bigred's Avatar
 
Matthew Philpott
Join Date: Aug 2009
Location: Belgium
Posts: 24
Rep Power: 17
bigred is on a distinguished road
Quote:
Originally Posted by santos View Post
I dont think so, because you will source a different config file in your .bashrc depending on the OF version you want to run (1.5 or 1.6). That way, you will either use 1.5 or 1.6 applications.

.bashrc line:
. $HOME/OpenFOAM/OpenFOAM-1.6_or_5/etc/bashrc

Regards,
Jose Santos

So do you have to change the .bashrc everytime you want to use a different version or can you put two lines in the .bashrc? ie.
. $HOME/OpenFOAM/OpenFOAM-1.5/etc/bashrc
. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc
__________________
CAELinux 2009 + OF1.5
Ubuntu 9.04 x64 (jaunty jackalope) + OF1.6
bigred is offline   Reply With Quote

Old   October 22, 2009, 21:50
Default
  #8
Senior Member
 
su_junwei's Avatar
 
su junwei
Join Date: Mar 2009
Location: Xi'an China
Posts: 151
Rep Power: 20
su_junwei is on a distinguished road
Send a message via MSN to su_junwei
Quote:
Originally Posted by bigred View Post
So do you have to change the .bashrc everytime you want to use a different version or can you put two lines in the .bashrc? ie.
. $HOME/OpenFOAM/OpenFOAM-1.5/etc/bashrc
. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc
I don't think so. Using the method, you can only use 1.6.

A possible method is
make a new file named OpenFOAM15 and put the following line in
source . $HOME/OpenFOAM/OpenFOAM-1.5/etc/bashrc
and put the file "OpenFOAM15" in a dir that system can found, for instance $HOME/bin

similarly, make a new file named OpenFOAM16 and put the following in
source . $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc
and put "OpenFOAM16" in $HOME/bin

Once you want to change the version, Just use following line in cmd to update environment.
source OpenFOAM15 //change to version 1.5
source OpenFOAM16 //change to version 1.6

Junwei
su_junwei is offline   Reply With Quote

Old   October 23, 2009, 03:37
Default
  #9
New Member
 
bigred's Avatar
 
Matthew Philpott
Join Date: Aug 2009
Location: Belgium
Posts: 24
Rep Power: 17
bigred is on a distinguished road
sounds like a good idea, I'll give it a try on the weekend, thanks.
__________________
CAELinux 2009 + OF1.5
Ubuntu 9.04 x64 (jaunty jackalope) + OF1.6
bigred is offline   Reply With Quote

Old   October 23, 2009, 05:16
Default
  #10
Member
 
Jean-Peer Lorenz
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 33
Rep Power: 17
jploz is on a distinguished road
Hi,

I can confirm that sourcing different resource files enables you to run
multiple OpenFOAM versions beside. I'm even using the whole set of ThirdParty stuff from the 1.6.x version with 1.5, 1.5-dev and 1.6.x, including Paraview 3.6.1. I've just created a symbolic link before compiling (each) OF - without any problems so far.

Bye,
Jean-Peer
jploz 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



All times are GMT -4. The time now is 02:58.