# Program to compile fortran programs from the command line, # with my particular options built in. # $1 is the name of the fortran program (just the prefix, not the full name with .f attached.) # The executable file will be named $1. # Example: suppose I have a fortran program called SpecAve.f. # The call would be made as "ca SpecAve". To run the program I would type in "SpecAve". # You will have to put this program in your path. I use csh shell for Unix. My .csh file # contains the path information. I also create a directory called "bin" in my home directory. # That is where I place scripts like this. # The permissions on this file must be changed to include execution as an option. #/usr/local/bin/gfortran -ffixed-form -ffixed-line-length-132 -fdefault-real-8 -o $1 $1.f /usr/bin/gfortran -fdefault-real-8 -fdefault-double-8 -ffixed-form -ffixed-line-length-132 -o $1 $1.f