@@ -347,25 +347,27 @@ SUBROUTINE flux_atmOcn(logunit, nMax ,zbot ,ubot ,vbot ,thbot , &
347347 !- -- compute some needed quantities ---
348348 if (add_gusts) then
349349 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-
351350 ugust_out(n) = ugust(min (rainc(n),6.94444e-4_r8 ))
352351 else
353352 vmag = max (seq_flux_atmocn_minwind, sqrt ( (ubot(n)- us(n))** 2 + (vbot(n)- vs(n))** 2 ) )
354353 ugust_out(n) = 0.0_r8
355354 end if
356355 wind0 = max (seq_flux_atmocn_minwind, sqrt ( (ubot(n)- us(n))** 2 + (vbot(n)- vs(n))** 2 ) )
357356
358-
359357 if (use_coldair_outbreak_mod) then
360358 ! Cold Air Outbreak Modification:
361359 ! Increase windspeed for negative tbot-ts
362360 ! based on Mahrt & Sun 1995,MWR
363361
364362 if (tdiff(n).lt. td0) then
363+ ! if add_gusts wind0 and vmag are different, both need this factor.
365364 vscl= min ((1._R8 + alpha* (abs (tdiff(n)- td0)** 0.5_R8 / abs (vmag))),maxscl)
366365 vmag= vmag* vscl
366+ vscl= min ((1._R8 + alpha* (abs (tdiff(n)- td0)** 0.5_R8 / abs (wind0))),maxscl)
367+ wind0= wind0* vscl
367368 endif
368369 endif
370+
369371 ssq = 0.98_R8 * qsat(ts(n)) / rbot(n) ! sea surf hum (kg/kg)
370372 delt = thbot(n) - ts(n) ! pot temp diff (K)
371373 delq = qbot(n) - ssq ! spec hum dif (kg/kg)
@@ -466,7 +468,6 @@ SUBROUTINE flux_atmOcn(logunit, nMax ,zbot ,ubot ,vbot ,thbot , &
466468 qref(n) = qbot(n) - delq* fac
467469
468470 duu10n(n) = u10n* u10n ! 10m wind speed squared
469-
470471 u10res(n) = u10n * (wind0/ vmag) ! resolved 10m wind
471472
472473 !- -----------------------------------------------------------
0 commit comments