previous up next print clean
Next: Acknowledgments Up: Claerbout: Introduction to seplib Previous: THE HISTORY FILE

MEMORY ALLOCATION

Sepcube programs can be written in fortran or C. A serious problem with fortran is that memory cannot be allocated for arrays whose size is determined at run time. We have gotten around this limitation by using two home-grown preprocessors, one called saw (Stanford Auto Writer) for main programs, and one called sat (Stanford Auto Temporaries) for subroutines. The sat preprocessor allows you to declare temporary arrays of arbitrary dimension such as

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

The saw preprocessor also calls an essential initialization routine initpar(), organizes the self-doc, and simplifies data cube input. Both preprocessors transform either fortran or ratfor. See the on-line self documentation or the manual pages for more details.


previous up next print clean
Next: Acknowledgments Up: Claerbout: Introduction to seplib Previous: THE HISTORY FILE
Stanford Exploration Project
12/18/1997