Skip to content

Commit b505982

Browse files
authored
Merge pull request #284 from CliMA/zs/remove_function
remove deprecated functions
2 parents ebae32b + 68cb34d commit b505982

File tree

3 files changed

+1
-20
lines changed

3 files changed

+1
-20
lines changed

docs/src/API.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ air_pressure
6161
air_temperature
6262
air_pressure_given_θ
6363
air_temperature_given_ρp
64-
condensate
6564
condensate_specific_humidity
6665
cp_m
6766
cv_m
@@ -93,7 +92,6 @@ q_vap_saturation
9392
q_vap_saturation_liquid
9493
q_vap_saturation_ice
9594
q_vap_from_p_vap
96-
q_vap_saturation_from_density
9795
partial_pressure_vapor
9896
partial_pressure_dry
9997
relative_humidity

src/air_humidities.jl

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ export vol_vapor_mixing_ratio
1212
export relative_humidity
1313
export q_vap_from_p_vap
1414
export q_vap_from_RH_liquid
15-
export q_vap_saturation_from_density # TODO Remove after ClimaAtmos and ClimaLand are updated to use q_vap_from_p_vap
16-
export condensate # TODO Remove after ClimaAtmos is updated to use condensate_specific_humidity
1715

1816
"""
1917
liquid_specific_humidity(q::PhasePartition)
@@ -51,13 +49,6 @@ partition `q`.
5149
"""
5250
@inline condensate_specific_humidity(q::PhasePartition) = q.liq + q.ice
5351

54-
"""
55-
condensate(q::PhasePartition{FT})
56-
57-
This is identical to [`condensate_specific_humidity`](@ref) and will be removed in a future release.
58-
"""
59-
const condensate = condensate_specific_humidity # TODO Remove after ClimaAtmos is updated to use condensate_specific_humidity
60-
6152
"""
6253
shum_to_mixing_ratio(q, q_tot)
6354
@@ -247,14 +238,6 @@ The vapor specific humidity, given
247238
return p_v /* R_v * T)
248239
end
249240

250-
"""
251-
q_vap_saturation_from_density(param_set, T, ρ, p_v)
252-
253-
This function is identical to [`q_vap_from_p_vap`](@ref) and is provided for backward compatibility.
254-
It will be removed in a future release.
255-
"""
256-
const q_vap_saturation_from_density = q_vap_from_p_vap # TODO Remove after ClimaAtmos and ClimaLand are updated to use q_vap_from_p_vap
257-
258241
"""
259242
q_vap_from_RH_liquid(param_set, p, T, RH)
260243

test/default_behavior_accuracy.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ This file contains tests for saturation adjustment accuracy and convergence.
277277
dry_mask = abs.(q_tot .- 0) .< eps(FT)
278278
q_dry = q_pt[dry_mask]
279279
@test all(
280-
condensate.(q_pt) .==
280+
condensate_specific_humidity.(q_pt) .==
281281
getproperty.(q_pt, :liq) .+ getproperty.(q_pt, :ice),
282282
)
283283
@test all(has_condensate.(q_dry) .== false)

0 commit comments

Comments
 (0)