Skip to content

Commit e933dfb

Browse files
committed
replace Alarm with new MoistAlarm
1 parent 1a2591c commit e933dfb

1 file changed

Lines changed: 10 additions & 17 deletions

File tree

GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSmoist_GridComp/GEOS_MoistGridComp.F90

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5169,10 +5169,7 @@ subroutine Initialize ( GC, IMPORT, EXPORT, CLOCK, RC )
51695169
ringTime=CurrentTime, &
51705170
ringInterval = MoistIntvl, &
51715171
ringTimeStepCount=1, &
5172-
sticky=.false., &
5173-
rc=status &
5174-
)
5175-
_VERIFY(status)
5172+
sticky=.false., __RC__)
51765173

51775174
! Call Generic Initialize for MOIST GC
51785175
!----------------------------------------
@@ -5407,36 +5404,32 @@ subroutine RUN ( GC, IMPORT, EXPORT, CLOCK, RC )
54075404
call MAPL_GetObjectFromGC ( GC, STATE, RC=STATUS)
54085405
VERIFY_(STATUS)
54095406

5410-
call ESMF_ClockGetAlarm(CLOCK, 'MoistAlarm', MoistAlarm, rc=status)
5411-
_VERIFY(status)
54125407

5413-
if ( .not. ESMF_AlarmIsRinging(MoistAlarm)) then
5414-
RETURN_(ESMF_SUCCESS)
5415-
endif
5416-
54175408
call MAPL_TimerOn (STATE,"TOTAL")
54185409

54195410
! Get parameters from generic state.
54205411
!-----------------------------------
54215412

54225413
call MAPL_Get( STATE, IM=IM, JM=JM, LM=LM, &
5423-
RUNALARM = ALARM, &
5414+
!RUNALARM = ALARM, &
54245415
CF = CF, &
54255416
LONS = LONS, &
54265417
LATS = LATS, &
54275418
INTERNAL_ESMF_STATE=INTERNAL, &
54285419
RC=STATUS )
54295420
VERIFY_(STATUS)
54305421

5422+
call ESMF_ClockGetAlarm(CLOCK, 'MoistAlarm', MoistAlarm, rc=status)
5423+
_VERIFY(status)
54315424

54325425

54335426
! If its time, calculate convective tendencies
54345427
! --------------------------------------------
54355428

5436-
if ( ESMF_AlarmIsRinging( ALARM, RC=status) ) then
5437-
VERIFY_(STATUS)
5438-
call ESMF_AlarmRingerOff(ALARM, RC=STATUS)
5429+
if ( ESMF_AlarmIsRinging( MoistAlarm, RC=status) ) then
54395430
VERIFY_(STATUS)
5431+
!call ESMF_AlarmRingerOff(ALARM, RC=STATUS)
5432+
!VERIFY_(STATUS)
54405433
call MAPL_TimerOn(STATE,"DRIVER")
54415434
call MOIST_DRIVER(IM,JM,LM, RC=STATUS)
54425435
VERIFY_(STATUS)
@@ -6423,9 +6416,9 @@ subroutine MOIST_DRIVER(IM,JM,LM, RC)
64236416
call MAPL_GetResource(STATE, DUST_INFAC, 'DUST_INFAC:', DEFAULT= 0.5, RC=STATUS) !work on this
64246417
call MAPL_GetResource(STATE, BC_INFAC, 'BC_INFAC:', DEFAULT= 0.1, RC=STATUS)
64256418
call MAPL_GetResource(STATE, ORG_INFAC, 'ORG_INFAC:', DEFAULT= 1.0, RC=STATUS)
6426-
call MAPL_GetResource(STATE, SS_INFAC, 'SS_INFAC:', DEFAULT= 1.0, RC=STATUS)
6419+
call MAPL_GetResource(STATE, SS_INFAC, 'SS_INFAC:', DEFAULT= 1.0, RC=STATUS)
64276420

6428-
call MAPL_GetResource(STATE, DT_MICRO, 'DT_MICRO:', DEFAULT= Moist_DT, RC=STATUS) ! time step of the microphysics substepping (s) (MG2) (5 min)
6421+
call MAPL_GetResource(STATE, DT_MICRO, 'DT_MICRO:', DEFAULT= HEARTBEAT, RC=STATUS) ! time step of the microphysics substepping (s) (MG2) (5 min)
64296422
call MAPL_GetResource(STATE, UR_SCALE, 'URSCALE:', DEFAULT= 1.0, RC=STATUS) !Scaling factor for sed vel of rain
64306423

64316424
call MAPL_GetResource(STATE, USE_NATURE_WSUB, 'USE_NAT_WSUB:', DEFAULT= 1.0 ,RC=STATUS) !greater than zero reads wsub from nature run
@@ -6547,7 +6540,7 @@ subroutine MOIST_DRIVER(IM,JM,LM, RC)
65476540
! Get the time step from the alarm
65486541
!---------------------------------
65496542

6550-
call ESMF_AlarmGet( ALARM, RingInterval=TINT, RC=STATUS)
6543+
call ESMF_AlarmGet( MoistAlarm, RingInterval=TINT, RC=STATUS)
65516544
VERIFY_(STATUS)
65526545
call ESMF_TimeIntervalGet(TINT, S_R8=DT_R8, RC=STATUS)
65536546
VERIFY_(STATUS)

0 commit comments

Comments
 (0)