Skip to content

Commit

Permalink
need a msg here
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Jan 30, 2025
1 parent 28f4aa0 commit da2ddae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions streams/dshr_stream_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,7 @@ subroutine shr_stream_readTCoord(strm, k, isroot_task, rc)
integer :: old_handle ! previous setting of pio error handling
real(R8) :: nsec ! elapsed secs on calendar date
real(R8),allocatable :: tvar(:)
character(CX) :: msg
character(*),parameter :: subname = '(shr_stream_readTCoord) '
!-------------------------------------------------------------------------------

Expand Down Expand Up @@ -1334,9 +1335,9 @@ subroutine shr_stream_readTCoord(strm, k, isroot_task, rc)
! if offset is not zero, adjust strm%file(k)%date(n) and strm%file(k)%secs(n)
if (strm%offset /= 0) then
if (size(strm%file(k)%date) /= size(strm%file(k)%secs)) then
write(strm%logunit,'(a,2i7)') trim(subname)//" Incompatable date and secs sizes",&
write(msg ,'(a,2i7)') trim(subname)//" Incompatable date and secs sizes",&
size(strm%file(k)%date), size(strm%file(k)%secs)
call shr_sys_abort()
call shr_sys_abort(trim(msg))
endif
num = size(strm%file(k)%date)
offin = strm%offset
Expand Down

0 comments on commit da2ddae

Please sign in to comment.