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

Multiple Installations of SU2

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

Like Tree1Likes
  • 1 Post By bigfootedrockmidget

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 5, 2021, 15:01
Default Multiple Installations of SU2
  #1
Senior Member
 
FlyBob91's Avatar
 
Join Date: Mar 2016
Location: Bergamo
Posts: 157
Rep Power: 7
FlyBob91 is on a distinguished road
Hello SU2 users,
I wonder if it's possible to install different versions of SU2 on the same machine (in my case I'm using ubuntu 20) and how to do that in case.

Best regards
FlyBob91 is offline   Reply With Quote

Old   March 6, 2021, 04:57
Default
  #2
Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 40
Rep Power: 11
bigfootedrockmidget is on a distinguished road
yes, that is possible. The simplest method is to just install the SU2 binaries inside the local su2 directories, and not install SU2 globally. With meson, you add the option --prefix=/home/flybob/su2_version25. When running, you just use the complete path to the executable, so mpirun -n 1024 /home/flybob/su2_version25/bin/SU2_CFD config.cfg


If you just want to try different feature branches of a git clone, you can simply switch from one branch to the next by using git checkout, e.g. git checkout master, git checkout develop
FlyBob91 likes this.
bigfootedrockmidget is offline   Reply With Quote

Old   March 18, 2021, 02:58
Default
  #3
Senior Member
 
FlyBob91's Avatar
 
Join Date: Mar 2016
Location: Bergamo
Posts: 157
Rep Power: 7
FlyBob91 is on a distinguished road
Thank you bigfoot,
is it possible to create an alias so that I can load the environment I need through only just one command. I'm afraid that your solution could, by typing the path, could give me troubles when using advanced features like adjoint shape optimization.

Best regards
FlyBob91 is offline   Reply With Quote

Old   March 19, 2021, 18:33
Default
  #4
Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 40
Rep Power: 11
bigfootedrockmidget is on a distinguished road
su2 tells you to put 4 export commands in .bashrc, so every time you start a shell, these paths are set. You can also choose NOT to put them in .bashrc and put them in a file, say path2v701, path2v711
and use

Code:
$ source pathv701
to load them. Now, when you have loaded pathv701 and want to switch to pathv711, you also need to restore the original PATH with the old SU2 directory, so copy the original path:


Code:
$ echo $PATH
/home/flybob91/bin:/home/flybob91/SU2/bin

and copy this path string into to your pathv701, etc. files and put it on the first line as:
Code:
export PATH=/home/flybob91/bin
and do the same thing for PYTHONPATH
bigfootedrockmidget 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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 06:09
Introducing SU2 International Developers Society (IDS) fpalacios SU2 News & Announcements 1 June 17, 2019 22:38
SU2 example job on multiple nodes creates incorrect result merijn SU2 Installation 0 December 14, 2018 08:58
SU2 for multiple sampling optimization Raj_1 SU2 3 August 6, 2016 14:16
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21


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