Lahey currently sells several Fortran compilers for Windows PCs, but only one can be used with recent GEMPACK releases.
See more details at http://www.lahey.com
Lahey sell their Fortran compiler through distributors and dealers, including leading Fortran vendor Polyhedron, or, in Australia, Devin Trussell of Computer Transition Systems.
You can download at no cost the latest Lahey maintenance update for your particular version of LF, LF95 or LF90. We recommend that you always work with the latest one available.
Follow the default install procedure for your version of Lahey Fortran. Then perform the following test.
You must test your installation of Lahey Fortran as follows. Right click and choose "Save Link As" or "Save Target As" depending on your browser, to save the small program hello.for into a temporary folder, say C:\test. When compiled and executed this program will write "Hello World" to the terminal. Next, open a command prompt in the C:\test folder (containing hello.for). Then type the following commands.
C:\test>lf95 hello.for
C:\test>hello
[For LF90, type "lf90 hello.for" for the first command.] The first command produces the executable program hello.exe.The second command, "hello", runs the hello.exe program which will write the words "Hello World" to the terminal. If you see "Hello World" then your compiler installation is working.
The installer program for older LF95 versions [LF95 5.60 or 5.70] uses 16-bit components which will not run under 64-bit Windows. However you can simply copy LF95 from another PC where it did install successfully. Print out and follow these instructions.
The binary files (including Header Array files) produced by the older compilers LF90 or F77L3 are not completely compatible with those produced using the modern Intel or LF and LF95 compilers. However GEMPACK programs convert between the old and new styles without any user intervention.
EXE files produced by the Lahey LF or LF95 compiler tend to use memory wastefully. Probably you would only notice this when running a very large model. The problem is fixed by creating and setting the Environment variable FLIB_DVT_BUFFER equal to 0 (ie, zero). The EXE file does not need to be recompiled.
Install packages for GEMPACK Release 10 and later automatically set FLIB_DVT_BUFFER=0, even if you chose the Intel compiler. The reason is, you may wish to run a model EXE from another source, such as a RunGTAP package. If that EXE was made by LF or LF95, its performance on your PC might be improved by the FLIB_DVT_BUFFER setting.
See also
Fortran compilers for GEMPACK
Intel Fortran compiler
GFortran compiler