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

Using LAPACK in SU2

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mpini

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 3, 2014, 01:38
Default Using LAPACK in SU2
  #1
New Member
 
Shainath
Join Date: Apr 2011
Posts: 18
Rep Power: 15
shainath is on a distinguished road
Hi,
I want to use functions of LAPACK(Linear Algebra PACKage) in SU2 code. Please give some guidelines to do so. Thank you.
shainath is offline   Reply With Quote

Old   November 27, 2014, 07:04
Default
  #2
New Member
 
Matteo Pini
Join Date: May 2014
Posts: 2
Rep Power: 0
mpini is on a distinguished road
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
shainath likes this.
mpini is offline   Reply With Quote

Old   November 28, 2014, 00:34
Default Lapack
  #3
New Member
 
Shainath
Join Date: Apr 2011
Posts: 18
Rep Power: 15
shainath is on a distinguished road
Dear Matteo Pini,
Thank you for information. I will surely look into it.
shainath 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
Tool to download: SU2 post-processing Combas SU2 2 June 5, 2014 14:55
Pointwise-SU2 joint webinar (April 29th) and SU2 v3.1.0 new release fpalacios SU2 News & Announcements 1 April 30, 2014 02:40
Official release of SU2 V3.0 and SU2 Educational V1.0 fpalacios SU2 News & Announcements 2 January 22, 2014 05:28
SU2 suite has moved to GitHub! fpalacios SU2 News & Announcements 0 August 12, 2013 02:07
Welcome to the Stanford University Unstructured (SU2) forum! economon SU2 0 January 7, 2013 02:48


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