I'm attempting to compile some old Fortran code used at my job with g77. I'm new at Fortran and programming generally, and I'm trying to work through the all of the errors. This is one that g77 is returning:
afsirs.for: In subroutine `sw':
afsirs.for:1209:
DATA BLANK /' '/
^
Type disagreement between expressions at (?) and (^)
If I understand correctly, this is related to the Hollerith constant used in the code snippets below:
1209 DATA BLANK /' '/
...
2727 DIMENSION ARRAY(22,54),IAXIS(13),YAXIS(6),Y(52),X(52),YSC(12)
CHARACTER CTYPE*12
DATA EYE, BLANK, DASH, PLUS, SYMBOL/1HI,1H ,1H-,1H+,1H*/
DATA YSC/1,2.5,5,10,20,40,50,60,75,100,150,200/
...
2753 C...... ZERO ARRAY
DO 100 I = 1,22
DO 100 J = 1,54
100 ARRAY(I,J) = BLANK
I've tried a few things, replacing the Holleriths with Character statements, etc, but I think I'm missing something. I would appreciate any suggestions on how to proceed.
EDIT---
1209 DATA BLANK /' '/
is part of a subroutine called 'SW' which calculates soil water availability. BLANK is then initialized in a plotting subroutine 'plot'.