@@ -347,25 +347,27 @@ SUBROUTINE flux_atmOcn(logunit, nMax ,zbot ,ubot ,vbot ,thbot , &
347
347
!- -- compute some needed quantities ---
348
348
if (add_gusts) then
349
349
vmag = max (seq_flux_atmocn_minwind, sqrt ( (ubot(n)- us(n))** 2 + (vbot(n)- vs(n))** 2 + (1.0_R8 * ugust(min (rainc(n),6.94444e-4_r8 ))** 2 )) )
350
-
351
350
ugust_out(n) = ugust(min (rainc(n),6.94444e-4_r8 ))
352
351
else
353
352
vmag = max (seq_flux_atmocn_minwind, sqrt ( (ubot(n)- us(n))** 2 + (vbot(n)- vs(n))** 2 ) )
354
353
ugust_out(n) = 0.0_r8
355
354
end if
356
355
wind0 = max (seq_flux_atmocn_minwind, sqrt ( (ubot(n)- us(n))** 2 + (vbot(n)- vs(n))** 2 ) )
357
356
358
-
359
357
if (use_coldair_outbreak_mod) then
360
358
! Cold Air Outbreak Modification:
361
359
! Increase windspeed for negative tbot-ts
362
360
! based on Mahrt & Sun 1995,MWR
363
361
364
362
if (tdiff(n).lt. td0) then
363
+ ! if add_gusts wind0 and vmag are different, both need this factor.
365
364
vscl= min ((1._R8 + alpha* (abs (tdiff(n)- td0)** 0.5_R8 / abs (vmag))),maxscl)
366
365
vmag= vmag* vscl
366
+ vscl= min ((1._R8 + alpha* (abs (tdiff(n)- td0)** 0.5_R8 / abs (wind0))),maxscl)
367
+ wind0= wind0* vscl
367
368
endif
368
369
endif
370
+
369
371
ssq = 0.98_R8 * qsat(ts(n)) / rbot(n) ! sea surf hum (kg/kg)
370
372
delt = thbot(n) - ts(n) ! pot temp diff (K)
371
373
delq = qbot(n) - ssq ! spec hum dif (kg/kg)
@@ -466,7 +468,6 @@ SUBROUTINE flux_atmOcn(logunit, nMax ,zbot ,ubot ,vbot ,thbot , &
466
468
qref(n) = qbot(n) - delq* fac
467
469
468
470
duu10n(n) = u10n* u10n ! 10m wind speed squared
469
-
470
471
u10res(n) = u10n * (wind0/ vmag) ! resolved 10m wind
471
472
472
473
!- -----------------------------------------------------------
0 commit comments