55 INTEGER,
INTENT(IN) :: KFLAG
57 LOGICAL,
DIMENSION(:),
INTENT(IN) :: OMASK
65 REAL(KIND=JPRB) :: ZHOOK_HANDLE
71 ELSEIF (kflag==2)
THEN 75 DO jlayer = 1,tpsnow%NLAYER
77 WHERE(omask(:)) tpsnow%WSNOW(:,jlayer) = zval
81 WHERE(omask(:)) tpsnow%RHO (:,jlayer) =
xundef 83 IF (
SIZE(tpsnow%TEMP ) >0)
THEN 85 tpsnow%TEMP (:,jlayer) =
xundef 86 tpsnow%HEAT (:,jlayer) =
xundef 90 IF (
SIZE(tpsnow%T ) >0)
WHERE(omask(:)) tpsnow%T(:,jlayer) =
xundef 92 IF (
SIZE(tpsnow%GRAN1) >0)
THEN 94 tpsnow%GRAN1(:,jlayer) =
xundef 95 tpsnow%GRAN2(:,jlayer) =
xundef 96 tpsnow%HIST (:,jlayer) =
xundef 97 tpsnow%AGE (:,jlayer) =
xundef 107 WHERE(omask(:)) tpsnow%ALB (:) =
xundef 108 WHERE(omask(:)) tpsnow%ALBVIS (:) =
xundef 109 WHERE(omask(:)) tpsnow%ALBNIR (:) =
xundef 110 WHERE(omask(:)) tpsnow%ALBFIR (:) =
xundef 112 IF (
SIZE(tpsnow%EMIS ) >0)
THEN
subroutine flag_gr_snow(KFLAG, OMASK, TPSNOW)