I am modifying a code from a model written in Fortran 77, but I have come across an odd thing to me. In some files, there is a label "d" in the first column of a line, like the example below:
d real*8 co2rootfix,co2rootloss,co2shootfix
d character komma*1
d open(unit=87,file='crop_CO2.csv',status='unknown')
d write(87,*) 'date,co2rootfix,co2rootloss,co2shootfix'
d open(unit=88,file='crop_dm.csv',status='unknown')
d write(88,*) 'date,wrtpot,wrt,wstpot,wst,rdpot,rd,laipot,lai,
d &gwrt,gwst,drrt,drlv,drst'
The weird thing is that it is successfully compiled by Intel's ifort compiler. However, gfortran logically returns the following error:
Error: Non-numeric character in statement label at (1)
I would like to know:
- the meaning of this label;
- why it is only recognized by ifort and;
- how I can make it work with gfortran.