Skip to content

Commit

Permalink
More accurate variable names for setting use_lake_model and comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
scrasmussen committed Jan 18, 2024
1 parent e64839f commit 5a69249
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions physics/scm_sfc_flux_spec.F90
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ subroutine scm_sfc_flux_spec_run (im, u1, v1, z1, t1, q1, p1, roughness_length,
integer, intent(out) :: errflg

integer :: i
integer, parameter :: true = 1, false = 0 ! to match type of use_lake_model
integer, parameter :: lake_model_on = 1, lake_model_off = 0 ! to match type of use_lake_model

real(kind=kind_phys) :: rho, q1_non_neg, w_thv1, rho_cp_inverse, rho_hvap_inverse, Obukhov_length, thv1, tvs, &
dtv, adtv, wind10m, u_fraction, roughness_length_m
Expand Down Expand Up @@ -213,12 +213,12 @@ subroutine scm_sfc_flux_spec_run (im, u1, v1, z1, t1, q1, p1, roughness_length,
do i = 1, im
if ((wet(i) .or. icy(i)) .and. lakefrac(i) > 0.0_kind_phys) then
if (lkm == 1 .and. lakefrac(i) >= 0.15 .and. lakedepth(i) > 1.0_kind_phys) then
use_lake_model(i) = true
use_lake_model(i) = lake_model_on
else
use_lake_model(i) = false
use_lake_model(i) = lake_model_off
endif
else
use_lake_model(i) = false
use_lake_model(i) = lake_model_off
endif
enddo
!
Expand Down
2 changes: 1 addition & 1 deletion physics/w3emc_wrapper.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!> \file scm_kinds.f90
!> \file w3emc_wrapper.f90
!! Wrapper with generic interfaces for w3emc library to reduce warnings
! Modules wrap w3emc routines:
! - w3difdat: https://www.nco.ncep.noaa.gov/pmb/docs/libs/w3lib/w3difdat.html
Expand Down

0 comments on commit 5a69249

Please sign in to comment.