Fortran Code Repository
Welcome to Lahey's Fortran Code Repository. This is a new area on our website where users can share Fortran code and programming techniques. Through collaboration with customers we're implementing the code repository with the following in mind:
Submit code by attaching it to an e-mail addressed to support at lahey dot com.
Click on a link below to download code. Send comments to support at lahey dot com.
pb268.zip - A library that looks like CalComp (CALL PLOT, CALL SYMBOL, etc.) but which writes a .BMP file
Ziggurat.zip - Marsaglia & Tsang
generator for random normals & random exponentials
GetDateTimeStr.zip - Returns a
15-character string with the current date and time. Month is text, avoiding
confusion with European, American and Japanese styles of writing dates.
CLRKB.F90 - Clear keyboard input buffer of any
keystrokes (console mode).
ESCAPE.F90 - Return true value if Escape key
has been pressed in console mode.
GETEXDIR.F90 - Return the directory from
which the current module was executed.
VALIDDIR.F90 - Test a field as a valid
directory name, but not a file ID.
FINDFID.F90 - Find a file in the current
directory or on the search path.
CHI-SQUARED.zip - Calculates Chi-squared
functions and distributions.
CONWIN.zip - Routines to facilitate use of
both menu and console windows in a Fortran program.
CNC.zip - This zip file contains multiple
subroutines and test programs to solve ordinary differential equations using
continuous numerical continuation. In addition there are several binary
utilities that provide useful date and calendar information.
PRINTWIN.zip - This zip file contains a
collection of routines used to contol printing via the Windows API. These
routines provide facilities for obtaining a list of available printers, opening
one, and sending output to it. This is an update of the original
post which uses a slightly different call to API function EnumPrinters when run
under Windows NT/2000/XP. This addresses the issue of printers attached
to remote servers not being reported by the earlier version of Printwin under
TESTINFNAN.zip - This zip file contains a
collection of routines used to test for values of infinity and NaN (Not a Number).
ISO_FORTRAN_ENV.f90 - This source file
contains a non-intrinsic ISO_FORTRAN_ENV module (in source form) from the
Fortran 2003 standard (page 360).
hl.c - Provides a command-line option to colorize the messages
numbers produced by LF95. Uses ANSI standard (VT-100) escape sequences.
fpp.zip - Provides source for a command-line
conditional compilation preprocessor application.
Where to find other code