|
[Sponsors] |
November 3, 2014, 02:38 |
Using LAPACK in SU2
|
#1 |
New Member
Shainath
Join Date: Apr 2011
Posts: 18
Rep Power: 15 |
Hi,
I want to use functions of LAPACK(Linear Algebra PACKage) in SU2 code. Please give some guidelines to do so. Thank you. |
|
November 27, 2014, 08:04 |
|
#2 |
New Member
Matteo Pini
Join Date: May 2014
Posts: 2
Rep Power: 0 |
Hi,
Here below some instructions to use LAPACK and LAPACK with SU2. Please consider that such illlustration refers to the coupling we are carrying on internally at TU-Delft. In due course and after proper discussion with the rest of the developers LAPACK lib will be available in SU2 develop branch. LAPACK-dir is the directory where the lapack lib is installed. Installation of LAPACK: 1) Unzip lapack gz-file. 2) Copy the make.inc for the desired Fortran compiler from INSTALL to LAPACK-dir (in my case I copied make.inc.ifort [=Intel Fortran] and renamed it to make.inc). 3) Change in make.inc the line CC = icc to CC = gcc, if you need to use a different compiler than the one from Intel. 4) In Makefile, in the line starting with “lib:” add liblapacke.lib (and probably also blas.lib). 5) Compile LAPACK on your system by running make. Enable in SU2: 1) Probably first: ./bootstrap 2) Then: ./configure --with-LAPACK-lib=LAPACK-dir/ --with-LAPACK-include=LAPACK-dir/lapacke/include/ 3) Next the usual: make and make install 4) the header file to be used in your code in order to enable a lapack subroutine is lapacke.h Best regards, Matteo |
|
November 28, 2014, 01:34 |
Lapack
|
#3 |
New Member
Shainath
Join Date: Apr 2011
Posts: 18
Rep Power: 15 |
Dear Matteo Pini,
Thank you for information. I will surely look into it. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tool to download: SU2 post-processing | Combas | SU2 | 2 | June 5, 2014 15:55 |
Pointwise-SU2 joint webinar (April 29th) and SU2 v3.1.0 new release | fpalacios | SU2 News & Announcements | 1 | April 30, 2014 03:40 |
Official release of SU2 V3.0 and SU2 Educational V1.0 | fpalacios | SU2 News & Announcements | 2 | January 22, 2014 06:28 |
SU2 suite has moved to GitHub! | fpalacios | SU2 News & Announcements | 0 | August 12, 2013 03:07 |
Welcome to the Stanford University Unstructured (SU2) forum! | economon | SU2 | 0 | January 7, 2013 03:48 |