Skip to content

Commit 133f008

Browse files
committed
fix error in reference pressure definition
1 parent 75b6b04 commit 133f008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Thermodynamics/reference_states.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ end
5252
g = thermo.gravitational_acceleration
5353
θᵣ = ref.reference_potential_temperature
5454
p₀ = ref.base_pressure
55-
return p₀ * (1 - g * z / (cᵖᵈ * θᵣ))^(Rᵈ / cᵖᵈ)
55+
return p₀ * (1 - g * z / (cᵖᵈ * θᵣ))^(cᵖᵈ / Rᵈ)
5656
end
5757

5858
@inline function saturation_specific_humidity(T, z, ref::ReferenceConstants, thermo, phase_transition)

0 commit comments

Comments
 (0)