The snow mask (clmswc_mask_snow) is applied only at the update step in update_clm_swc, but not at the state vector collection step.
When some ensemble members have snow over a grid cell, and others do not, a fully consistent mask would require knowing the snow state of all members simultaneously, which involves MPI communication across ensemble members. This is not currently implemented.
Solution: To apply the same check at state collection time.
Affected code
interface/model/eclm/enkf_clm_mod_5.F90
set_clm_statevec_swc (line 476): no snow check when writing to clm_statevec
update_clm_swc (line 694): snow check present here but not above
The snow mask (
clmswc_mask_snow) is applied only at the update step inupdate_clm_swc, but not at the state vector collection step.When some ensemble members have snow over a grid cell, and others do not, a fully consistent mask would require knowing the snow state of all members simultaneously, which involves MPI communication across ensemble members. This is not currently implemented.
Solution: To apply the same check at state collection time.
Affected code
interface/model/eclm/enkf_clm_mod_5.F90set_clm_statevec_swc(line 476): no snow check when writing toclm_statevecupdate_clm_swc(line 694): snow check present here but not above