Skip to content

Commit

Permalink
check atmos type
Browse files Browse the repository at this point in the history
  • Loading branch information
kmdeck committed Jun 12, 2024
1 parent 97f06a1 commit d095df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared_utilities/models.jl
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ function add_drivers_to_cache(p::NamedTuple, model::AbstractModel, coords)
(atmos, radiation) = get_drivers(model)
if hasproperty(model, :parameters) &&
hasproperty(model.parameters, :earth_param_set) &&
!isnothing(atmos)
typeof(atmos) == ClimaLand.PrescribedAtmosphere
if LP.thermodynamic_parameters(model.parameters.earth_param_set) !=
atmos.thermo_params
error(
Expand Down

0 comments on commit d095df1

Please sign in to comment.