@@ -63,7 +63,6 @@ module dshr_mod
63
63
public :: dshr_orbital_init
64
64
65
65
private :: dshr_mesh_create_scol ! create mesh for single column mode
66
- private :: dshr_time_init ! initialize time
67
66
68
67
! Note that gridTofieldMap = 2, therefore the ungridded dimension is innermost
69
68
@@ -569,44 +568,6 @@ subroutine dshr_set_runclock(gcomp, rc)
569
568
570
569
end subroutine dshr_set_runclock
571
570
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
-
610
571
! ===============================================================================
611
572
subroutine dshr_restart_read (rest_filem , rpfile , &
612
573
logunit , my_task , mpicom , sdat , rc , fld , fldname )
0 commit comments