Skip to content

Commit c2f3bd7

Browse files
authored
Merge pull request #3769 from CliMA/kp/rad-time-fix
Check for equality with float(t) instead of t
2 parents 2f43019 + ce92f64 commit c2f3bd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cache/surface_albedo.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ so the initial callback initialization doesn't lead to NaNs in the radiation mod
110110
Subsequently, the surface albedo will be updated by the coupler.
111111
"""
112112
function set_surface_albedo!(Y, p, t, ::CouplerAlbedo)
113-
if t == 0
113+
if float(t) == 0
114114
FT = eltype(Y)
115115
# set initial insolation initial conditions
116116
!(p.atmos.insolation isa IdealizedInsolation) &&

0 commit comments

Comments
 (0)