|
[Sponsors] |
July 31, 2009, 10:33 |
installing v1.6 and keeping v1.5
|
#1 |
New Member
|
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 |
|
July 31, 2009, 10:47 |
|
#2 |
Senior Member
|
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 |
|
July 31, 2009, 12:13 |
|
#3 |
Member
Julien Schaguene
Join Date: Apr 2009
Location: France
Posts: 55
Rep Power: 17 |
Is he not going to have conflict for application names? (e.g. interFoam?)
I'm also interested... |
|
July 31, 2009, 12:18 |
|
#4 |
Senior Member
|
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 |
|
July 31, 2009, 12:29 |
|
#5 |
Senior Member
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 251
Rep Power: 18 |
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 |
|
July 31, 2009, 12:57 |
|
#6 |
Senior Member
Rishi .
Join Date: Mar 2009
Posts: 149
Rep Power: 17 |
Bit caution.
cmake is apparently missing from ThirdParty-1.6 http://www.cfd-online.com/Forums/ope...rty-1-6-a.html regards, Rishi |
|
October 22, 2009, 04:00 |
Same problem
|
#7 | |
New Member
Matthew Philpott
Join Date: Aug 2009
Location: Belgium
Posts: 24
Rep Power: 17 |
Quote:
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 |
||
October 22, 2009, 21:50 |
|
#8 | |
Senior Member
|
Quote:
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 |
||
October 23, 2009, 03:37 |
|
#9 |
New Member
Matthew Philpott
Join Date: Aug 2009
Location: Belgium
Posts: 24
Rep Power: 17 |
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 |
|
October 23, 2009, 05:16 |
|
#10 |
Member
Jean-Peer Lorenz
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 33
Rep Power: 17 |
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 |
|
|
|