Skip to content

Commit da2ddae

Browse files
committed
need a msg here
1 parent 28f4aa0 commit da2ddae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

streams/dshr_stream_mod.F90

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,6 +1255,7 @@ subroutine shr_stream_readTCoord(strm, k, isroot_task, rc)
12551255
integer :: old_handle ! previous setting of pio error handling
12561256
real(R8) :: nsec ! elapsed secs on calendar date
12571257
real(R8),allocatable :: tvar(:)
1258+
character(CX) :: msg
12581259
character(*),parameter :: subname = '(shr_stream_readTCoord) '
12591260
!-------------------------------------------------------------------------------
12601261

@@ -1334,9 +1335,9 @@ subroutine shr_stream_readTCoord(strm, k, isroot_task, rc)
13341335
! if offset is not zero, adjust strm%file(k)%date(n) and strm%file(k)%secs(n)
13351336
if (strm%offset /= 0) then
13361337
if (size(strm%file(k)%date) /= size(strm%file(k)%secs)) then
1337-
write(strm%logunit,'(a,2i7)') trim(subname)//" Incompatable date and secs sizes",&
1338+
write(msg ,'(a,2i7)') trim(subname)//" Incompatable date and secs sizes",&
13381339
size(strm%file(k)%date), size(strm%file(k)%secs)
1339-
call shr_sys_abort()
1340+
call shr_sys_abort(trim(msg))
13401341
endif
13411342
num = size(strm%file(k)%date)
13421343
offin = strm%offset

0 commit comments

Comments
 (0)