Skip to content

Commit 33964d7

Browse files
authored
SM-DA: Do not apply insignificant column-mean updates (#24)
Applies to `CLM:colmean=1`. Insignifcant updates of column-mean SM are not applied. Also, no watmin checks (and sets) applied.
1 parent a697886 commit 33964d7

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

interface/model/eclm/enkf_clm_mod_5.F90

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,18 @@ subroutine update_clm(tstartcycle, mype) bind(C,name="update_clm")
625625
end if
626626

627627
if (clmstatevec_colmean==1) then
628+
! If there is no significant increment, do not
629+
! implement any update / check.
630+
!
631+
! Note: Computing the absolute difference here,
632+
! because the whole state vector should be soil
633+
! moistures. For variables with very small values in
634+
! the state vector, this would have to be adapted
635+
! (e.g. to relative difference).
636+
if( abs(clm_statevec(state_clm2pdaf_p(j,i)) - clm_statevec_orig(state_clm2pdaf_p(j,i))) <= 1.0e-7) then
637+
cycle
638+
end if
639+
628640
! Update SWC column value with the increment-factor
629641
! of the state vector update (state vector updates
630642
! are means of cols in grc)

0 commit comments

Comments
 (0)