Next: ERROR HANDLING
Up: Clapp & Claerbout: RATional
Previous: TRANSLATED FORTRAN90 CODE
You can download Ratfor90 from
http://sepwww.stanford.edu/sep/bob/ratfor90/ratfor90. You might need to
change the first line of the code indicating where perl is on your system.
You can convert from Ratfor90 to Fortran90 on the command line by:
ratfor90 < input.r90 > output.f90
If you wish to use expanded SEP command line, history file manipulation, and
self-documentation abilities add the -sep -SOURCE /my/source/location
flags.
An alternate approach is to use the SEP makefile rules which are explained
in Reproducible electronic documents
. If you follow this approach you will
need to:
- install ratfor90 in /usr/local/bin/ratfor90 or edit the
Prg.defs.top file.
- set the environmental variable RATF90 to yes ( setenv RATF90 yes).
If you are using the SEP setup you can add this line to your
Setup/cshrc.machinetype [e.g. cshrc.sgi, cshrc.i586, etc.]
- name your Ratfor90 files:
- using Fortran90 syntax .r90.
- using Fortran90 and SEP allocation conventions .rs90.
By setting the environmental variable RATF90, SEP style ratfor77 code,
normally indicated by the .rt, .rs, and .rst suffixes will
converted to Fortran90 by Ratfor90 and compiled.
These rules are in the updated version of the SEP makefile rules so if you have
a previous version you will need to download a new one.
C
Next: ERROR HANDLING
Up: Clapp & Claerbout: RATional
Previous: TRANSLATED FORTRAN90 CODE
Stanford Exploration Project
10/9/1997