Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Library Lapack in Fortran 77

Luiz_Z_
Beginner
389 Views

Hello,

I am beginer user in Fortran, so perhaps my problem could look silly, but I got stuck and I need a help.

I have a code in Fortran 90 in which I have used the function SGESV from Lapack Library.

However, the software (Ansys CFX) I intend to use the Fortran Code together does not work with the Fortran 90,

only with Fortran 77. So I translated the code writen in Fortran 90 to Fortran 77, but I still didn't find

the function SGESV neither the Lapack Library in Fortran 77.

Does this function/library exists in Fortran 77?

Glad,

Luiz Zubeldia 

0 Kudos
1 Reply
mecej4
Honored Contributor III
389 Views

Lapack and BLAS are neither integral parts of Fortran, nor do all Fortran compiler vendors supply Lapack and BLAS libraries. With Intel Fortran,  you can link the MKL libraries (try the /Qmkl compiler option first) to pull in the SGESV routine.

You are mistaken in your statements that Ansys CFX can link only to F77 code, etc. Note that libraries contain object code. Whether the object code was obtained by compiling F77, F90, C or assembler code is not material, as long as the Lapack/BLAS API-s are adhered to. Likewise, the MKL routines can be called from Fortran 77, 90, 95, 2003,..., C, C#, Visual Basic, assembler, Python, etc.

0 Kudos
Reply