@@ -153,14 +153,11 @@ subroutine scm_sfc_flux_spec_run (im, u1, v1, z1, t1, q1, p1, roughness_length,
153
153
frland(i) = 1.0_kind_phys
154
154
cice(i) = 0.0_kind_phys
155
155
icy(i) = .false.
156
- tsfcl(i) = T_surf(i) ! GJF
157
156
else
158
157
frland(i) = 0.0_kind_phys
159
158
if (oceanfrac(i) > 0.0_kind_phys ) then
160
159
if (cice(i) >= min_seaice) then
161
160
icy(i) = .true.
162
- tisfc(i) = T_surf(i) ! GJF
163
- tisfc(i) = max (timin, min (tisfc(i), tgice))
164
161
! This cplice namelist option was added to deal with the
165
162
! situation of the FV3ATM-HYCOM coupling without an active sea
166
163
! ice (e.g., CICE6) component. By default, the cplice is true
@@ -186,8 +183,6 @@ subroutine scm_sfc_flux_spec_run (im, u1, v1, z1, t1, q1, p1, roughness_length,
186
183
else
187
184
if (cice(i) >= min_lakeice) then
188
185
icy(i) = .true.
189
- tisfc(i) = T_surf(i) ! GJF
190
- tisfc(i) = max (timin, min (tisfc(i), tgice))
191
186
islmsk(i) = 2
192
187
else
193
188
cice(i) = 0.0_kind_phys
@@ -198,13 +193,23 @@ subroutine scm_sfc_flux_spec_run (im, u1, v1, z1, t1, q1, p1, roughness_length,
198
193
if (cice(i) < 1.0_kind_phys ) then
199
194
wet(i) = .true. ! some open lake
200
195
endif
201
- if (wet(i)) then ! Water
202
- tsfc_wat(i) = T_surf(i)
203
- endif
204
196
endif
205
197
endif
206
198
if (nint (slmsk(i)) /= 1 ) slmsk(i) = islmsk(i)
207
199
enddo
200
+
201
+ do i = 1 , im
202
+ if (wet(i)) then
203
+ tsfc_wat(i) = T_surf(i)
204
+ end if
205
+ if (dry(i)) then
206
+ tsfcl(i) = T_surf(i)
207
+ end if
208
+ if (icy(i)) then
209
+ tisfc(i) = T_surf(i)
210
+ tisfc(i) = max (timin, min (tisfc(i), tgice))
211
+ end if
212
+ end do
208
213
209
214
! to prepare to separate lake from ocean under water category
210
215
do i = 1 , im
0 commit comments