Fortran function remembers values (newbie help)

You should initialize variables in the declaration only if they are constants (PARAMETER), or if you are conscious it implies SAVE (but in that case explicit is better than implicit…)

1 Like