next up previous
Next: 3. Decimal Point in Up: Common Fortran Errors Previous: 1. Wrong Placement of

2. Wrong Variable or Function Type

(a) This often occurs when variables are implicitly typed (either by you or using the default types, i-n = integer, a-h and o-z = single precision real). You need to ensure that the types of all functions and variables are declared wherever they differ from the implicit types.

(b) This problem can occur when a typo causes the compiler to assume that you have introduced a new variable (e.g., you type the variable name ``variab1e'' instead of ``variable''; or, worse, ``variab le'' instead of ``variable'').



Daniel Mitchell
1999-03-08