Skip to content

Commit

Permalink
Correct check on accumulation type: should be src
Browse files Browse the repository at this point in the history
  • Loading branch information
darianboggs committed Feb 12, 2025
1 parent d200d8b commit 4246c45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generic3g/specs/FrequencyAspect.F90
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ logical function matches(src, dst) result(does_match)
class is (FrequencyAspect)
other_timestep = dst%get_timestep()
if(other_timestep == zero) return
if(.not. accumulation_type_is_valid(dst%get_accumulation_type())) return
if(.not. accumulation_type_is_valid(src%get_accumulation_type())) return
does_match = other_timestep == this_timestep
end select

Expand Down
2 changes: 1 addition & 1 deletion generic3g/tests/Test_Aspects.pf
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ contains
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)
call ESMF_TimeSet(time2, s=0)

import = FrequencyAspect(dt1, time1, accumulation_type='mean')
export = FrequencyAspect(dt2, time2)
Expand Down

0 comments on commit 4246c45

Please sign in to comment.