garynewport2
Instructor
Hi
I am new to Fortran (but not programming) and understand that the save command causes the variables of a subroutine to become static prior to an end or return statement but I have this in the code I have received:
This is the first 5 lines of the code, so there is no return or end statement at this point (there are loads of lines to run after this; the bulk of the work!).
I'm assuming that this save simply causes the first 2 variables (ifirst and zMmin) to become static, but not subsequent variables?
I am new to Fortran (but not programming) and understand that the save command causes the variables of a subroutine to become static prior to an end or return statement but I have this in the code I have received:
Code:
include 'parm.h'
include 'xvar.h'
data ifirst/0/
data zMmin/9.945d31/
save
This is the first 5 lines of the code, so there is no return or end statement at this point (there are loads of lines to run after this; the bulk of the work!).
I'm assuming that this save simply causes the first 2 variables (ifirst and zMmin) to become static, but not subsequent variables?