#!/bin/ksh # Usage: ftn90 main.f90 sub1.f90 sub2.f90 ... # The executable will be left in "main". Any modules used (except # REAL_PRECISION) must be at the beginning of the file main.f90. # A=${1%.f*} LIB=/home/staff/ltw/CSLABfiles/bin/ export LD_LIBRARY_PATH=.:/usr/local/lf9562/lib lf95 -o $A -M${LIB}mod --f95 --in --trap $* ${LIB}REAL_PRECISION.o \ ${LIB}lapack.a ${LIB}blas.a