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

switching my source code from windows platform to a Linux/Mac platform

emms
Beginner
1,540 Views
Hi,
I just got a fortran source code that used to be compiled successfully on windows using visual studio. I was able to get a free download (for non-commercial use) of the intel fortran compiler and have installed it on my linux system. Unfortunately I still have trouble compiling the source code due to error messages associated to the following routines or modules in the source code:

use dfport or use ifport ( I understand "DFPORT is now just a jacket module for IFPORT.....steve")
use msflib

call sortqq
call systemqq

Also, I would like to know the role of the intel source code in the file "aifport.f90".

Any advice on how to solve this problem would be appreciated.

thanks
0 Kudos
3 Replies
Steven_L_Intel1
Employee
1,540 Views
Replace the "use dfport" with "use ifport". Do not include "use msflib". "use ifport" will give you access to sortqq and systemqq.

We do not have a file called aifport.f90. We do have ifport.f90 which is the source for module ifport. Typically you would not use that file except to read it as a reference.
0 Kudos
emms
Beginner
1,540 Views
Hi Steve,
Thank you very much for your help. I followed your instructions and all worked.
I equally had to change the compiler command from "gfortran" to "ifort" in my makefile. Initially, I used gfortran to compile the BLAS and LAPACK libraries but this caused some compatibility problems with other codes that were compiled using ifort. All I had to do was recompile and link these respective libraries using "ifort".

emms.
0 Kudos
TimP
Honored Contributor III
1,540 Views
Ifort provides the pre-built optimized MKL BLAS and Lapack libraries, with both ifort and gfortran compatibility options, in case you don't want to take the trouble to build them yourself.
0 Kudos
Reply