Skip to content

Commit

Permalink
Revised thresholds for OLR (single precision nvfortran)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertPincus committed Apr 19, 2024
1 parent 059b1e6 commit 98cf0ee
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/rte_lw_solver_unit_tests.F90
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,8 @@ function check_gray_rad_equil(sfc_T, lw_tau, top_at_1, up_flux, net_flux)
! Check top-of-atmosphere energy balance
!
if(.not. allclose(up_flux(:,toa), &
gray_rad_equil_olr(sfc_t, lw_tau), tol=4._wp)) then
gray_rad_equil_olr(sfc_t, lw_tau), tol=8._wp)) then
call report_err("OLR is not consistent with gray radiative equilibrium")
print *, maxval((up_flux(:,toa) - &
gray_rad_equil_olr(sfc_t, lw_tau))/spacing(gray_rad_equil_olr(sfc_t, lw_tau)))
check_gray_rad_equil = .false.
end if
!
Expand All @@ -319,8 +317,6 @@ function check_gray_rad_equil(sfc_T, lw_tau, top_at_1, up_flux, net_flux)
if(.not. allclose(net_flux(:,:), &
spread(net_flux(:,1), dim=2, ncopies=size(net_flux,2)), &
tol = 100._wp)) then
print *, maxval((net_flux(:,:) - &
spread(net_flux(:,1), dim=2, ncopies=size(net_flux,2)))/spacing(net_flux(:,:)))
call report_err("Net flux not constant with tau in gray radiative equilibrium")
check_gray_rad_equil = .false.
end if
Expand Down

0 comments on commit 98cf0ee

Please sign in to comment.