Skip to content

Commit 07212ff

Browse files
authored
Merge pull request #24 from NumericalEarth/glw/cleanup
go back to simple defn of exner
2 parents 5237ced + 7007648 commit 07212ff

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/MoistAirBuoyancies.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,8 @@ end
293293
cᵖᵐ = mixture_heat_capacity(state.q, thermo)
294294
inv_ϰᵐ = Rᵐ / cᵖᵐ
295295
pᵣ = reference_pressure(state.z, ref, thermo)
296-
FT = eltype(pᵣ)
297-
pₑ₀ = convert(FT, 1e5)
298-
return (pᵣ / pₑ₀)^inv_ϰᵐ
296+
p₀ = ref.base_pressure
297+
return (pᵣ / p₀)^inv_ϰᵐ
299298
end
300299

301300
#####

src/Thermodynamics/atmosphere_thermodynamics.jl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,9 @@ end
318318
Rᵐ = mixture_gas_constant(state.q, thermo)
319319
cᵖᵐ = mixture_heat_capacity(state.q, thermo)
320320
inv_ϰᵐ = Rᵐ / cᵖᵐ
321-
322321
pᵣ = reference_pressure(state.z, ref, thermo)
323-
FT = eltype(pᵣ)
324-
pₑ₀ = convert(FT, 1e5) # "exner surface reference pressure" -- hard-coded for now
325-
326-
return (pᵣ / pₑ₀)^inv_ϰᵐ
322+
p₀ = ref.base_pressure
323+
return (pᵣ / p₀)^inv_ϰᵐ
327324
end
328325

329326
condensate_specific_humidity(T, state, ref, thermo) =

0 commit comments

Comments
 (0)