next up previous print clean
Next: The main program environment Up: SOFTWARE SUPPORT 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