Numerical Modelling in Fortran: day 2
Numerical Modelling in Fortran: day 2
Numerical Modelling in Fortran: day 2
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Initialis<strong>in</strong>g variables<br />
• Always <strong>in</strong>itialise variables! (don’t<br />
assume they will automatically be set to<br />
0, for example)<br />
• Either<br />
– when def<strong>in</strong>ed, e.g., real:: a=5.<br />
– <strong>in</strong> the program, e.g., a=5.0<br />
– read from keyboard or file