Skip to content

Commit 1b12b02

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_is_alarm_active and mpas_prev_ring_in_window enforce these bounds, and mpas_in_ringing_envelope has been updated to use them. The mpas_add_clock_alarm subroutine now accepts optional alarmStartTime and alarmStopTime arguments, with defaults taken from the clock’s start and Updated tests
1 parent 324573f commit 1b12b02

File tree

4 files changed

+582
-9
lines changed

4 files changed

+582
-9
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)