Skip to content

Commit

Permalink
Update test to use updated constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
darianboggs committed Feb 11, 2025
1 parent 8754b1e commit 7f4b271
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions generic3g/tests/Test_Aspects.pf
Original file line number Diff line number Diff line change
Expand Up @@ -285,21 +285,15 @@ contains
type(FrequencyAspect) :: import, export

type(ESMF_TimeInterval) :: dt1, dt2
type(ESMF_Time) :: ref1, ref2
type(ESMF_Time) :: time1, time2

integer :: status
call ESMF_TimeIntervalSet(dt1, s=4)
call ESMF_TimeIntervalSet(dt2, s=2) ! commensurate
call ESMF_TimeSet(time1, s=0)
call ESMF_TimeSet(time2, m=0)

import = FrequencyAspect(dt1, accumulation_type='mean')
call ESMF_TimeSet(ref1, s=0, rc=status)
@assertEqual(0, status, 'Nonzero status')
call import%set_reference_time(ref1)
export = FrequencyAspect(dt2)
call ESMF_TimeSet(ref2, m=0, rc=status)
@assertEqual(0, status, 'Nonzero status')
call export%set_reference_time(ref2)

import = FrequencyAspect(dt1, time1, accumulation_type='mean')
export = FrequencyAspect(dt2, time2)
@assert_that(export%can_connect_to(import), is(true()))

end subroutine test_can_connect_accum_mean
Expand Down

0 comments on commit 7f4b271

Please sign in to comment.