next up previous print clean
Next: The main program environment Up: RATional FORtran == Ratfor90 Previous: Examples

Memory allocation in subroutines

For backward compatibility we allow the ``temporary'' memory allocation introduced by our Ratfor77 processor for example:

temporary real*4 data(n1,n2,n3), convolution(j+k-1)

These declarations must follow other declarations and precede the executable statements. Automatic arrays are supported in Fortran90. To allow full code compatibility, Ratfor90 simply translates this statement to

real*4 data(n1,n2,n3), convolution(j+k-1).



Stanford Exploration Project
2/27/1998