Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for zlvs #29

Merged
merged 4 commits into from
Jun 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions cicecore/cicedynB/general/ice_flux.F90
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ module ice_flux
! in from atmosphere (if calc_Tsfc)

real (kind=dbl_kind), dimension (:,:,:), allocatable, public :: &
zlvl , & ! atm level height (m)
zlvl , & ! atm level height (momentum) (m)
zlvs , & ! atm level height (scalar quantities) (m)
uatm , & ! wind velocity components (m/s)
vatm , &
wind , & ! wind speed (m/s)
Expand Down Expand Up @@ -391,7 +392,8 @@ subroutine alloc_flux
iceumask (nx_block,ny_block,max_blocks), & ! ice extent mask (U-cell)
fm (nx_block,ny_block,max_blocks), & ! Coriolis param. * mass in U-cell (kg/s)
Tbu (nx_block,ny_block,max_blocks), & ! factor for seabed stress (landfast ice)
zlvl (nx_block,ny_block,max_blocks), & ! atm level height (m)
zlvl (nx_block,ny_block,max_blocks), & ! atm level height (momentum) (m)
zlvs (nx_block,ny_block,max_blocks), & ! atm level height (scalar quantities) (m)
uatm (nx_block,ny_block,max_blocks), & ! wind velocity components (m/s)
vatm (nx_block,ny_block,max_blocks), &
wind (nx_block,ny_block,max_blocks), & ! wind speed (m/s)
Expand Down Expand Up @@ -570,7 +572,8 @@ subroutine init_coupler_flux
!-----------------------------------------------------------------
! fluxes received from atmosphere
!-----------------------------------------------------------------
zlvl (:,:,:) = c10 ! atm level height (m)
zlvl (:,:,:) = c10 ! atm level height (momentum) (m)
zlvs (:,:,:) = c10 ! atm level height (scalar quantities) (m)
rhoa (:,:,:) = 1.3_dbl_kind ! air density (kg/m^3)
uatm (:,:,:) = c5 ! wind velocity (m/s)
vatm (:,:,:) = c5
Expand Down
3 changes: 2 additions & 1 deletion cicecore/cicedynB/general/ice_step_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ subroutine step_therm1 (dt, iblk)
use ice_domain_size, only: ncat, nilyr, nslyr, n_iso, n_aero
use ice_flux, only: frzmlt, sst, Tf, strocnxT, strocnyT, rside, fbot, Tbot, Tsnice, &
meltsn, melttn, meltbn, congeln, snoicen, uatm, vatm, fside, &
wind, rhoa, potT, Qa, zlvl, strax, stray, flatn, fsensn, fsurfn, fcondtopn, &
wind, rhoa, potT, Qa, zlvl, zlvs, strax, stray, flatn, fsensn, fsurfn, fcondtopn, &
flw, fsnow, fpond, sss, mlt_onset, frz_onset, fcondbotn, fcondbot, &
frain, Tair, strairxT, strairyT, fsurf, fcondtop, fsens, &
flat, fswabs, flwout, evap, evaps, evapi, Tref, Qref, Uref, fresh, fsalt, fhocn, &
Expand Down Expand Up @@ -358,6 +358,7 @@ subroutine step_therm1 (dt, iblk)
vatm = vatm (i,j, iblk), &
wind = wind (i,j, iblk), &
zlvl = zlvl (i,j, iblk), &
zlvs = zlvs (i,j, iblk), &
Qa = Qa (i,j, iblk), &
Qa_iso = Qa_iso (i,j,:,iblk), &
rhoa = rhoa (i,j, iblk), &
Expand Down
3 changes: 2 additions & 1 deletion doc/source/cice_index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,8 @@ either Celsius or Kelvin units).
"yieldstress11(12, 22)", "yield stress tensor components", ""
"year_init", ":math:`\bullet` the initial year", ""
"**Z**", "", ""
"zlvl", "atmospheric level height", "m"
"zlvl", "atmospheric level height (momentum)", "m"
"zlvs", "atmospheric level height (scalars)", "m"
"zref", "reference height for stability", "10. m"
"zTrf", "reference height for :math:`T_{ref}`, :math:`Q_{ref}`, :math:`U_{ref}`", "2. m"
"zvir", "gas constant (water vapor)/gas constant (air) - 1", "0.606"