From 0ee41017b7379506e28044c2905d4e8c0bbc0ba0 Mon Sep 17 00:00:00 2001 From: Zhaoyi Shen <11598433+szy21@users.noreply.github.com> Date: Wed, 17 Jul 2024 09:53:16 -0700 Subject: [PATCH] Fix a bug for upper limit of q_v_sat in relations.jl --- Project.toml | 2 +- src/relations.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index d76ab95d..6f37b6ac 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Thermodynamics" uuid = "b60c26fb-14c3-4610-9d3e-2d17fe7ff00c" authors = ["Climate Modeling Alliance"] -version = "0.12.6" +version = "0.12.7" [deps] DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae" diff --git a/src/relations.jl b/src/relations.jl index 8a180895..b87f5477 100644 --- a/src/relations.jl +++ b/src/relations.jl @@ -1165,7 +1165,7 @@ Compute the saturation specific humidity, given q_v_sat = if p - p_v_sat ≥ eps(FT) R_d / R_v * (1 - q_tot) * p_v_sat / (p - p_v_sat) else - FT(1) / eps(FT) + FT(1) end return q_v_sat end