Skip to content

Commit 20eea23

Browse files
authored
Merge branch 'main' into glw/new-oceananigans
2 parents c345b3a + 07212ff commit 20eea23

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
@@ -343,12 +343,9 @@ end
343343
Rᵐ = mixture_gas_constant(state.q, thermo)
344344
cᵖᵐ = mixture_heat_capacity(state.q, thermo)
345345
inv_ϰᵐ = Rᵐ / cᵖᵐ
346-
347346
pᵣ = reference_pressure(state.z, ref, thermo)
348-
FT = eltype(pᵣ)
349-
pₑ₀ = convert(FT, 1e5) # "exner surface reference pressure" -- hard-coded for now
350-
351-
return (pᵣ / pₑ₀)^inv_ϰᵐ
347+
p₀ = ref.base_pressure
348+
return (pᵣ / p₀)^inv_ϰᵐ
352349
end
353350

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

0 commit comments

Comments
 (0)