Skip to content

Commit 5b2040e

Browse files
committed
add logic to remove incrments from restart if outside IAU window
1 parent c5f2b72 commit 5b2040e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/ocean_data_assim/MOM_oda_incupd.F90

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,16 @@ subroutine apply_oda_incupd(h, tv, u, v, dt, G, GV, US, CS)
588588
if (CS%ncount >= CS%nstep_incupd) then
589589
if (is_root_pe()) call MOM_error(NOTE,"ended updating fields with increments. ")
590590
return
591+
if (CS%ncount == CS%nstep_incupd) then
592+
call register_restart_field_as_obsolete("oda_incupd_ncount", "none", CS)
593+
call register_restart_field_as_obsolete("T_inc", "none", CS)
594+
call register_restart_field_as_obsolete("S_inc", "none", CS)
595+
call register_restart_field_as_obsolete("h_obs", "none", CS)
596+
if (CS%uv_inc) then
597+
call register_restart_field_as_obsolete("u_inc", "none", CS)
598+
call register_restart_field_as_obsolete("v_inc", "none", CS)
599+
endif
600+
endif
591601
endif !ncount>CS%nstep_incupd
592602

593603
! update counter

0 commit comments

Comments
 (0)