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.
Analysis<br />
• Subrout<strong>in</strong>e arguments can have<br />
different names from those <strong>in</strong> call<strong>in</strong>g<br />
rout<strong>in</strong>e: what matters is order<br />
• FD approximation becomes more<br />
accurate as grid spac<strong>in</strong>g dx decreases<br />
• Allocate argument arrays <strong>in</strong> the call<strong>in</strong>g<br />
rout<strong>in</strong>e, not <strong>in</strong> the subrout<strong>in</strong>e/function