Skip to content

Commit

Permalink
remove bucket air_density update
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasloan25 committed Feb 25, 2025
1 parent c3b89be commit ab49765
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions experiments/ClimaEarth/components/land/climaland_bucket.jl
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,6 @@ function Interfacer.get_field(bucket_sim::BucketSimulation, ::Val{:water})
ρ_cloud_liq # kg water / m2
end

function Interfacer.update_field!(sim::BucketSimulation, ::Val{:air_density}, field)
parent(sim.integrator.p.bucket.ρ_sfc) .= parent(field)
end
function Interfacer.update_field!(sim::BucketSimulation, ::Val{:liquid_precipitation}, field)
ρ_liq = (LP.ρ_cloud_liq(sim.model.parameters.earth_param_set))
parent(sim.integrator.p.drivers.P_liq) .= parent(field ./ ρ_liq)
Expand Down Expand Up @@ -304,13 +301,12 @@ Interfacer.reinit!(sim::BucketSimulation) = Interfacer.reinit!(sim.integrator)
Extend Interfacer.add_coupler_fields! to add the fields required for BucketSimulation.
The fields added are:
- `:ρ_sfc`
- `:F_radiative` (for radiation input)
- `:P_liq` (for precipitation input)
- `:P_snow` (for precipitation input)
"""
function Interfacer.add_coupler_fields!(coupler_field_names::Set, ::BucketSimulation)
bucket_coupler_fields = [:ρ_sfc, :F_radiative, :P_liq, :P_snow]
bucket_coupler_fields = [:F_radiative, :P_liq, :P_snow]
push!(coupler_field_names, bucket_coupler_fields...)
end

Expand Down

0 comments on commit ab49765

Please sign in to comment.