Skip to content

Commit 2ba02ca

Browse files
committed
len(trim(str_date_time))
1 parent 82dc428 commit 2ba02ca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

GEOSlandassim_GridComp/clsm_ensupd_read_obs.F90

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,12 +1765,12 @@ subroutine read_obs_sm_ASCAT_EUMET( &
17651765

17661766
! Check that str_date_time only contains numeric characters
17671767

1768-
do ii = 1, len(str_date_time)
1769-
if (ichar(str_date_time(ii:ii)) < ichar('0') .or. ichar(str_date_time(ii:ii)) > ichar('9')) then
1770-
err_msg = 'The date-time string parsed from the ASCAT observation filename contains non-numeric characters'
1771-
call ldas_abort(LDAS_GENERIC_ERROR, Iam, err_msg)
1772-
end if
1773-
end do
1768+
do ii = 1, len(trim(str_date_time))
1769+
if (ichar(str_date_time(ii:ii)) < ichar('0') .or. ichar(str_date_time(ii:ii)) > ichar('9')) then
1770+
err_msg = 'The date-time string parsed from the ASCAT observation filename contains non-numeric characters'
1771+
call ldas_abort(LDAS_GENERIC_ERROR, Iam, err_msg)
1772+
end if
1773+
end do
17741774

17751775
read(str_date_time( 1: 4), *) date_time_tmp%year
17761776
read(str_date_time( 5: 6), *) date_time_tmp%month

0 commit comments

Comments
 (0)