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

AD Build SU2-7.6.0

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By pcg

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2020, 15:46
Default AD Build SU2-7.6.0
  #1
Member
 
Amit
Join Date: May 2013
Posts: 85
Rep Power: 13
aero_amit is on a distinguished road
How to compile latest version of SU2 (7.0.6 or so) with AD support. Online documentation is available for 6.2.0 or below.
aero_amit is offline   Reply With Quote

Old   July 18, 2020, 18:59
Default
  #2
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14
pcg is on a distinguished road
./meson.py ... -Denable-autodiff=true -Denable-directdiff=true ...

As documented here: https://su2code.github.io/docs_v7/Bu...-configuration
koray likes this.
pcg is offline   Reply With Quote

Old   July 19, 2020, 03:43
Default
  #3
Member
 
Amit
Join Date: May 2013
Posts: 85
Rep Power: 13
aero_amit is on a distinguished road
Thanks Pedro, So far I was happy with 6.2.0.

I tried compiling 7.0.6 as suggested and ended up with following error -

amit@amit-*******:~/supack/SU2-codi_medi_update$ python3.6 ./meson.py -Denable-autodiff=true -Denable-directdiff=true -Denable-pywrapper=true -Dwith-mpi=auto -Denable-cgns=true --prefix=/home/amit/suinstall/V7p06_codi
error: pathspec '/home/******/SU2-codi_medi_update/externals/codi' did not match any file(s) known to git
Traceback (most recent call last):
File "./meson.py", line 71, in <module>
init_submodules('auto')
File "/home/amit/supack/SU2-codi_medi_update/meson_scripts/init.py", line 79, in init_submodules
submodule_status(alt_name_codi, sha_version_codi)
File "/home/amit/supack/SU2-codi_medi_update/meson_scripts/init.py", line 106, in submodule_status
status = subprocess.run(['git', 'submodule','status', path], stdout=subprocess.PIPE, check = True, cwd = sys.path[0]).stdout.decode('utf-8')
File "/usr/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', 'submodule', 'status', '/home/amit/supack/SU2-codi_medi_update/externals/codi']' returned non-zero exit status 1.

I missed out some basic .....?
aero_amit is offline   Reply With Quote

Old   July 19, 2020, 06:23
Default
  #4
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14
pcg is on a distinguished road
Did you download the code as zip or clone it with git?
Codi and Medi are git submodules, which are automatically initialized if you clone SU2 with git (git clone "SU2 url").
pcg is offline   Reply With Quote

Old   July 19, 2020, 12:12
Default
  #5
Member
 
Amit
Join Date: May 2013
Posts: 85
Rep Power: 13
aero_amit is on a distinguished road
Thanks Pedro, It worked after cloning with git. I had to disable tecio, as it was throwing some error (it is not required as well for me at the moment).
Regards
Amit
aero_amit 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems when compile SU2 v4.X with openmpi BopngMa SU2 1 September 6, 2015 07:30
Building from Source on Windows using Cygwin64 ericthefatguy SU2 2 May 12, 2015 19:23
Official release of SU2 V3.0 and SU2 Educational V1.0 fpalacios SU2 News & Announcements 2 January 22, 2014 06:28
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
lack of support for VOF in version 3.26 Tom Siemens 10 August 6, 2006 09:20


All times are GMT -4. The time now is 21:24.