Skip to content

Commit d2fa455

Browse files
committed
remove unused dshr_time_init
1 parent f87f18d commit d2fa455

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

dshr/dshr_mod.F90

-39
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ module dshr_mod
6363
public :: dshr_orbital_init
6464

6565
private :: dshr_mesh_create_scol ! create mesh for single column mode
66-
private :: dshr_time_init ! initialize time
6766

6867
! Note that gridTofieldMap = 2, therefore the ungridded dimension is innermost
6968

@@ -569,44 +568,6 @@ subroutine dshr_set_runclock(gcomp, rc)
569568

570569
end subroutine dshr_set_runclock
571570

572-
!===============================================================================
573-
subroutine dshr_time_init( Time, ymd, cal, tod, rc)
574-
575-
! Create the ESMF_Time object corresponding to the given input time,
576-
! given in YMD (Year Month Day) and TOD (Time-of-day) format.
577-
! Set the time by an integer as YYYYMMDD and integer seconds in the day
578-
579-
! input/output parameters:
580-
type(ESMF_Time) , intent(inout) :: Time ! ESMF time
581-
integer , intent(in) :: ymd ! year, month, day YYYYMMDD
582-
type(ESMF_Calendar) , intent(in) :: cal ! ESMF calendar
583-
integer , intent(in) :: tod ! time of day in seconds
584-
integer , intent(out) :: rc
585-
586-
! local variables
587-
integer :: year, mon, day ! year, month, day as integers
588-
integer :: tdate
589-
integer , parameter :: SecPerDay = 86400 ! Seconds per day
590-
character(len=*), parameter :: subname='(dshr_time_init)'
591-
!-------------------------------------------------------------------------------
592-
593-
rc = ESMF_SUCCESS
594-
595-
if ( (ymd < 0) .or. (tod < 0) .or. (tod > SecPerDay) )then
596-
call shr_sys_abort( subname//'ERROR yymmdd is a negative number or time-of-day out of bounds' )
597-
end if
598-
599-
tdate = abs(ymd)
600-
year = int(tdate/10000)
601-
if (ymd < 0) year = -year
602-
mon = int( mod(tdate,10000)/ 100)
603-
day = mod(tdate, 100)
604-
605-
call ESMF_TimeSet( Time, yy=year, mm=mon, dd=day, s=tod, calendar=cal, rc=rc )
606-
if (chkerr(rc,__LINE__,u_FILE_u)) return
607-
608-
end subroutine dshr_time_init
609-
610571
!===============================================================================
611572
subroutine dshr_restart_read(rest_filem, rpfile, &
612573
logunit, my_task, mpicom, sdat, rc, fld, fldname)

0 commit comments

Comments
 (0)