Skip to content

Commit

Permalink
fixed sensible heat flux correction due to rainfall
Browse files Browse the repository at this point in the history
  • Loading branch information
knutaros committed Apr 15, 2024
1 parent 5431037 commit 204083f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/airsea/fairall.F90
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ subroutine fairall(sst,airt,u10,v10,precip,evap,taux,tauy,qe,qh)
x3 = qa * L /(rgas * ta_K * ta_K)
cd_rain = 1.0/(1.0+const06*(x3*L*x1)/(cpa*x2))
cd_rain = cd_rain*cpw*((tw-ta) + (qs-qa)*L/cpa)
qe = qe - rainfall * cd_rain
qh = qh - rainfall * cd_rain
end if

! Compute turbulent latent heat flux (W/m2), qe.
Expand Down
2 changes: 1 addition & 1 deletion src/airsea/kondo.F90
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ subroutine kondo(sst,airt,u10,v10,precip,evap,taux,tauy,qe,qh)
x3 = qa * L /(rgas * ta_K * ta_K)
cd_rain = 1.0/(1.0+const06*(x3*L*x1)/(cpa*x2))
cd_rain = cd_rain*cpw*((tw-ta) + (qs-qa)*L/cpa)
qe = qe - rainfall * cd_rain
qh = qh - rainfall * cd_rain
end if

! calculation of evaporation/condensation in m/s
Expand Down

0 comments on commit 204083f

Please sign in to comment.