Skip to content

Commit

Permalink
SW solver tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertPincus committed May 21, 2024
1 parent e185a2b commit 96ed952
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/rte_sw_solver_unit_tests.F90
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ program rte_sw_solver_unit_tests

type(ty_optical_props_2str) :: atmos
type(ty_fluxes_broadband) :: fluxes
logical :: top_at_1
logical, parameter :: top_at_1 = .true.
real(wp), dimension(ncol,nlay+1), target :: &
ref_flux_up, ref_flux_dn, ref_flux_dir, ref_flux_net, &
tst_flux_up, tst_flux_dn, tst_flux_dir, tst_flux_net
Expand All @@ -81,8 +81,6 @@ program rte_sw_solver_unit_tests

logical :: passed

! ------------------------------------------------------------------------------------------------------
top_at_1 = .true.
! ------------------------------------------------------------------------------------
!
! Shortwave tests - thin atmospheres
Expand Down Expand Up @@ -121,7 +119,7 @@ program rte_sw_solver_unit_tests
!
! Check direct beam for correctness with Beer-Lambert-Bouguier
!
if(top_at_1) then
if(atmos%top_is_at_1()) then
sfc => ref_flux_dir(:,nlay+1)
else
sfc => ref_flux_dir(:, 1)
Expand Down

0 comments on commit 96ed952

Please sign in to comment.