CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   installing v1.6 and keeping v1.5 (http://www.cfd-online.com/Forums/openfoam/67032-installing-v1-6-keeping-v1-5-a.html)

Gavin July 31, 2009 09:33

installing v1.6 and keeping v1.5
 
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

santos July 31, 2009 09:47

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

Schag July 31, 2009 11:13

Is he not going to have conflict for application names? (e.g. interFoam?)

I'm also interested...

santos July 31, 2009 11:18

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

Ahmed July 31, 2009 11:29

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

hellorishi July 31, 2009 11:57

Bit caution.

cmake is apparently missing from ThirdParty-1.6

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

regards,
Rishi

bigred October 22, 2009 03:00

Same problem
 
Quote:

Originally Posted by santos (Post 224883)
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

su_junwei October 22, 2009 20:50

Quote:

Originally Posted by bigred (Post 233628)
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

bigred October 23, 2009 02:37

sounds like a good idea, I'll give it a try on the weekend, thanks.

jploz October 23, 2009 04:16

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


All times are GMT -4. The time now is 05:01.