I try to compile an old Fortran 90 program with gfortran but this doesn't work:
REAL(DP), DIMENSION(10,6) :: csCO2
csCO2(1,:) = (/DOUBLE PRECISION :: 0.0, 0.0, 0.18261340d7, &
0.79224365d2, 0.0, 0.0/)
csCO2(2,:) = (/DOUBLE PRECISION :: 0.0, 0.0, 0.0,&
0.66560660d-4, 0.57152798d-5, 0.3022236d-9/)
this give me the error:
csCO2(1,:) = (/DOUBLE PRECISION :: 0.0, 0.0, 0.18261340d7, &
^
cf90-113 f90fe: ERROR FUGCO2, File = CO2EOS.f90, Line = 56, Column = 16
IMPLICIT NONE is specified in the local scope, therefore an explicit type
must be specified for data object "DOUBLE". ^
cf90-197 f90fe: ERROR FUGCO2, File = CO2EOS.f90, Line = 56, Column = 23
Unexpected syntax: "/)" was expected but found "P".
How can I resolve this?