@@ -26,7 +26,6 @@ module flux_atmocn_diurnal_mod
2626 use shr_const_mod, only : shr_const_ocn_ref_sal, shr_const_zsrflyr, shr_const_rgas
2727 use shr_sys_mod, only : shr_sys_abort
2828 use flux_atmocn_COARE_mod, only : cor30a
29- use shr_wv_sat_mod, only : shr_wv_sat_qsat_liquid ! use saturation calculation consistent with CAM
3029
3130 implicit none
3231 private
@@ -236,7 +235,8 @@ subroutine flux_atmOcn_diurnal( &
236235 real (R8 ) :: tdiff(nMax) ! tbot - ts
237236 real (R8 ) :: vscl
238237
239- ! NOTE: this should use the shr_wv_sat_qsat_liquid if this routine is ever used in production
238+ ! NOTE: this should use the shr_wv_sat_qsat_liquid if this routine is ever used in
239+ ! production (see https://github.com/ESCOMP/CMEPS/issues/624)
240240 qsat(Tk) = 640380.0_R8 / exp (5107.4_R8 / Tk)
241241 cdn(Umps) = 0.0027_R8 / Umps + 0.000142_R8 + 0.0000764_R8 * Umps
242242 psimhu(xd) = log ((1.0_R8 + xd* (2.0_R8 + xd))* (1.0_R8 + xd* xd)/ 8.0_R8 ) - 2.0_R8 * atan (xd) + 1.571_R8
@@ -354,10 +354,9 @@ subroutine flux_atmOcn_diurnal( &
354354 speed(n) = 0.0_R8
355355 endif
356356
357- ! This should be changed to use the subroutine below
357+ ! This should be changed to use shr_wv_sat_qsat_liquid (see
358+ ! https://github.com/ESCOMP/CMEPS/issues/624)
358359 ssq = 0.98_R8 * qsat(tBulk(n)) / rbot(n) ! sea surf hum (kg/kg)
359- ! call shr_wv_sat_qsat_liquid(tBulk(n), pslv(n), qsat, ssq)
360- ! ssq = 0.98_R8 * ssq ! sea surf hum (kg/kg)
361360
362361 delt = thbot(n) - tBulk(n) ! pot temp diff (K)
363362 delq = qbot(n) - ssq ! spec hum dif (kg/kg)
@@ -503,10 +502,9 @@ subroutine flux_atmOcn_diurnal( &
503502
504503 !- -need to update ssq,delt,delq as function of tBulk ----
505504
506- ! This should be changed to use the subroutine below
505+ ! This should be changed to use shr_wv_sat_qsat_liquid (see
506+ ! https://github.com/ESCOMP/CMEPS/issues/624)
507507 ssq = 0.98_R8 * qsat(tBulk(n)) / rbot(n) ! sea surf hum (kg/kg)
508- ! call shr_wv_sat_qsat_liquid(tBulk(n), pslv(n), qsat, ssq)
509- ! ssq = 0.98_R8 * ssq ! sea surf hum (kg/kg)
510508
511509 delt = thbot(n) - tBulk(n) ! pot temp diff (K)
512510 delq = qbot(n) - ssq ! spec hum dif (kg/kg)
0 commit comments