Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions cicecore/drivers/nuopc/cmeps/ice_shr_methods.F90
Original file line number Diff line number Diff line change
Expand Up @@ -971,8 +971,7 @@ subroutine timeInit( Time, ymd, cal, tod, rc)

! local variables
integer :: year, mon, day ! year, month, day as integers
integer :: tdate ! temporary date
integer :: date ! coded-date (yyyymmdd)
integer :: tdate ! temporary date (yyyymmdd)
character(len=*), parameter :: subname='(timeInit)'
!-------------------------------------------------------------------------------

Expand All @@ -982,9 +981,9 @@ subroutine timeInit( Time, ymd, cal, tod, rc)
call abort_ice( subname//'ERROR yymmdd is a negative number or time-of-day out of bounds' )
end if

tdate = abs(date)
tdate = abs(ymd)
year = int(tdate/10000)
if (date < 0) year = -year
if (ymd < 0) year = -year
mon = int( mod(tdate,10000)/ 100)
day = mod(tdate, 100)

Expand Down