Skip to content

Commit

Permalink
review comments [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
kmdeck committed Jun 24, 2024
1 parent 2edaa2b commit 1cf96a6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions experiments/benchmarks/land.jl
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,10 @@ function setup_prob(t0, tf, Δt; nelements = (101, 15))
PAR_albedo = PAR_albedo,
NIR_albedo = NIR_albedo,
)

soil_params_mask_sfc = ClimaLand.Domains.top_center_to_surface(soil_params_mask)


soil_params_mask_sfc =
ClimaLand.Domains.top_center_to_surface(soil_params_mask)

# Read in f_max data and land sea mask
infile_path = ClimaLand.Artifacts.topmodel_data_path()
f_max =
Expand Down
1 change: 0 additions & 1 deletion src/integrated/soil_canopy_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ function SoilCanopyModel{FT}(;
land_args.runoff,
)
else #no runoff model
@info("Warning: No runoff model is being used; zero runoff generated.")
top_bc =
ClimaLand.Soil.AtmosDrivenFluxBC(atmos, CanopyRadiativeFluxes{FT}())
end
Expand Down
3 changes: 3 additions & 0 deletions src/standalone/Soil/boundary_conditions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,9 @@ end


function AtmosDrivenFluxBC(atmos, radiation; runoff = NoRunoff())
if typeof(runoff) <: NoRunoff
@info("Warning: No runoff model was provided; zero runoff generated.")
end
args = (atmos, radiation, runoff)
return AtmosDrivenFluxBC{typeof.(args)...}(args...)
end
Expand Down

0 comments on commit 1cf96a6

Please sign in to comment.