Basic HTML version of Foils prepared 21 Sept 1995

Foil 28 Arguments for Procedures

From New CPS615 Foils-- 28 August 95 CPS615 Basic Simulation Track for Computational Science -- Fall Semester 95. by Nancy McCracken and Geoffrey C. Fox


In Fortran90, each subroutine, function and (main) program are compiled independently
  • Default implies that cannot refer to variables from one procedure in another
One can pass arguments and these are passed by reference(address) not value as in Fortran77
Common blocks or modules can be used for global declaration of variables that can be referenced in all subroutines



© on Tue Oct 7 1997