Skip to content

Commit cdc1d7c

Browse files
author
Andy Stokely
committed
Add support for active alarm windows in MPAS timekeeping
This commit introduces active alarm windows, allowing alarms to be constrained by explicit start and stop times. New helper functions mpas_add_clock_alarm subroutine now accepts optional alarmStartTime and alarmEndTime arguments, which default to the clock's start and end times.
1 parent 324573f commit cdc1d7c

File tree

4 files changed

+650
-10
lines changed

4 files changed

+650
-10
lines changed

src/core_test/mpas_test_core.F

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,18 @@ function test_core_run(domain) result(iErr)!{{{
242242
end if
243243
call mpas_log_write('')
244244

245+
!
246+
! Test functionality of alarms with user-defined active windows
247+
!
248+
call mpas_log_write('')
249+
call mpas_log_write('Testing mpas_window_alarms:')
250+
iErr = mpas_window_alarm_tests(domain)
251+
if (iErr == 0) then
252+
call mpas_log_write('* mpas_window_alarm tests - all tests passed: SUCCESS')
253+
else
254+
call mpas_log_write('* mpas_window_alarm tests - $i failed tests: FAILURE', intArgs=[iErr])
255+
end if
256+
245257
deallocate(threadErrs)
246258

247259
end function test_core_run!}}}

0 commit comments

Comments
 (0)