Code: Select all
character (len=256), dimension(39) :: ANANAME
Code: Select all
DO i=1,38
DO j=1,LEN(ANANAME(1))
ANANAME(i)(j:j)=' '
END DO
END DO
The 39th element of ANANAME is used by ana_wtype, so I presume this bug was introduced with the recent revision to the water-type code.
Incidentally, the initialisation of ANANAME and BIONAME in lines 711-731 is unnecessarily complex:
Code: Select all
!
! Analytical files switch and names.
!
Lanafile=.TRUE.
DO i=1,38
DO j=1,LEN(ANANAME(1))
ANANAME(i)(j:j)=' '
END DO
END DO
#ifdef BIOLOGY
!
! Biology model header names.
!
DO i=1,4
Lbiofile(i)=.TRUE.
DO j=1,LEN(BIONAME(1))
BIONAME(i)(j:j)=' '
END DO
END DO
#endif
Code: Select all
!
! Analytical files switch and names.
!
Lanafile=.TRUE.
DO i=1,39
ANANAME(i)=''
END DO
#ifdef BIOLOGY
!
! Biology model header names.
!
DO i=1,4
Lbiofile(i)=.TRUE.
BIONAME(i)=''
END DO
#endif