From c7e13661f2ac15cbb4845aebeff6b81389eccdcf Mon Sep 17 00:00:00 2001 From: Samuel Levis Date: Fri, 15 Nov 2024 16:41:57 -0700 Subject: [PATCH] Revert change I brought in with the conflicts --- src/main/accumulMod.F90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/accumulMod.F90 b/src/main/accumulMod.F90 index e968e2dae5..0c2462c1f8 100644 --- a/src/main/accumulMod.F90 +++ b/src/main/accumulMod.F90 @@ -595,7 +595,7 @@ subroutine update_accum_field_timeavg(this, level, nstep, field) do k = begi,endi effective_nstep = nstep - this%ndays_reset_shifted(k,level) - time_to_reset = mod(effective_nstep,this%period) == 1 .or. this%period == 1 + time_to_reset = (mod(effective_nstep,this%period) == 1 .or. this%period == 1) .and. effective_nstep /= 0 if (this%active(k) .and. (time_to_reset .or. this%reset(k,level))) then if (this%reset(k,level) .and. .not. time_to_reset) then this%ndays_reset_shifted(k,level) = this%ndays_reset_shifted(k,level) + this%nsteps(k,level)