Skip to content

Commit

Permalink
Merge branch 'concepts/atmo-bdy-layer-diags-fix' into 'concepts/main'…
Browse files Browse the repository at this point in the history
… (!9)

icepack_atmo: correctly compute Tref, Qref at zlvs
  • Loading branch information
phil-blain committed Feb 12, 2024
2 parents fbc850e + 13b4536 commit c28ab64
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions columnphysics/icepack_atmo.F90
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ subroutine atmo_boundary_layer (sfctype, &
Uref ! reference height wind speed (m/s)

real (kind=dbl_kind), intent(in), optional :: &
zlvs ! atm level height (scalar quantities) (m)
zlvs ! atm level height (scalar quantities) (m)

! local variables

Expand Down Expand Up @@ -358,7 +358,11 @@ subroutine atmo_boundary_layer (sfctype, &
! Compute diagnostics: T, Q (at zTrf), U (at zref)
!------------------------------------------------------------

hols = hols*zTrf/zlvl
if (present(zlvs)) then
hols = hols*zTrf/zlvs
else
hols = hols*zTrf/zlvl
endif
psix2 = -c5*hols*stable + (c1-stable)*psi_scalar_unstable(hols)
fac = (rh/vonkar) &
* (alzs + al2 - psixh + psix2)
Expand Down

0 comments on commit c28ab64

Please sign in to comment.