Skip to content

Commit

Permalink
Corrected dimensions in comments
Browse files Browse the repository at this point in the history
  Corrected dimensions in comments.  All answers are bitwise identical.
  • Loading branch information
Hallberg-NOAA committed Sep 28, 2019
1 parent 4808e3a commit 727199a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/initialization/midas_vertmap.F90
Original file line number Diff line number Diff line change
Expand Up @@ -561,10 +561,10 @@ end function find_limited_slope
!> Find interface positions corresponding to density profile
function find_interfaces(rho, zin, Rb, depth, nlevs, nkml, nkbl, hml, debug, eps_z) result(zi)
real, dimension(:,:,:), &
intent(in) :: rho !< potential density in z-space [kg m-3]
intent(in) :: rho !< potential density in z-space [R ~> kg m-3]
real, dimension(size(rho,3)), &
intent(in) :: zin !< Input data levels [Z ~> m or m].
real, dimension(:), intent(in) :: Rb !< target interface densities [kg m-3]
real, dimension(:), intent(in) :: Rb !< target interface densities [R ~> kg m-3]
real, dimension(size(rho,1),size(rho,2)), &
intent(in) :: depth !< ocean depth [Z ~> m].
real, dimension(size(rho,1),size(rho,2)), &
Expand All @@ -577,7 +577,7 @@ function find_interfaces(rho, zin, Rb, depth, nlevs, nkml, nkbl, hml, debug, eps
real, dimension(size(rho,1),size(rho,2),size(Rb,1)) :: zi !< The returned interface, in the same units az zin.

! Local variables
real, dimension(size(rho,1),size(rho,3)) :: rho_
real, dimension(size(rho,1),size(rho,3)) :: rho_ ! A slice of densities [R ~> kg m-3]
real, dimension(size(rho,1)) :: depth_
logical :: unstable
integer :: dir
Expand Down
6 changes: 3 additions & 3 deletions src/parameterizations/vertical/MOM_entrain_diffusive.F90
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ subroutine entrainment_diffusive(h, tv, fluxes, dt, G, GV, US, CS, ea, eb, &
dS_kb, & ! The reference potential density difference across the
! interface between the buffer layers and layer kb [R ~> kg m-3].
dS_anom_lim, &! The amount by which dS_kb is reduced when limits are
! applied [kg m-3].
! applied [R ~> kg m-3].
I_dSkbp1, & ! The inverse of the potential density difference across the
! interface below layer kb [R-1 ~> m3 kg-1].
dtKd_kb, & ! The diapycnal diffusivity in layer kb times the time step
Expand Down Expand Up @@ -1627,15 +1627,15 @@ subroutine determine_Ea_kb(h_bl, dtKd_kb, Sref, I_dSkbp1, Ent_bl, ea_kbp1, &
! kb, limited to ensure that it is positive and not
! too much bigger than dS_kb or dS_kbp1 [R ~> kg m-3].
ddSkb_dE, ddSlay_dE, & ! The derivatives of dS_kb and dS_Lay with E
! [kg m-3 H-1 ~> kg m-4 or m-1].
! [R H-1 ~> kg m-4 or m-1].
derror_dE, & ! The derivative of err with E [H ~> m or kg m-2].
err, & ! The "error" whose zero is being sought [H2 ~> m2 or kg2 m-4].
E_min, E_max, & ! The minimum and maximum values of E [H ~> m or kg m-2].
error_minE, error_maxE ! err when E = E_min or E = E_max [H2 ~> m2 or kg2 m-4].
real :: err_est ! An estimate of what err will be [H2 ~> m2 or kg2 m-4].
real :: eL ! 1 or 0, depending on whether increases in E lead
! to decreases in the entrainment from below by the
! deepest buffer layer.
! deepest buffer layer [nondim].
real :: fa ! Temporary variable used to calculate err [nondim].
real :: fk ! Temporary variable used to calculate err [H2 ~> m2 or kg2 m-4].
real :: fm, fr ! Temporary variables used to calculate err [H ~> m or kg m-2].
Expand Down

0 comments on commit 727199a

Please sign in to comment.