Skip to content

Commit 2a81e59

Browse files
Fix sign error on stability variable (#579)
* Update similarity_theory_turbulent_fluxes.jl * run examples * bump patch release --------- Co-authored-by: Navid C. Constantinou <[email protected]>
1 parent a8e8df3 commit 2a81e59

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name = "ClimaOcean"
22
uuid = "0376089a-ecfe-4b0e-a64f-9c555d74d754"
33
license = "MIT"
44
authors = ["Climate Modeling Alliance and contributors"]
5-
version = "0.7.1"
5+
version = "0.7.2"
66

77
[deps]
88
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

src/OceanSeaIceModels/InterfaceComputations/similarity_theory_turbulent_fluxes.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function iterate_interface_fluxes(flux_formulation::SimilarityTheoryFluxes,
211211

212212
# Transfer coefficients at height `h`
213213
ϰ = flux_formulation.von_karman_constant
214-
L★ = ifelse(b★ == 0, Inf, - u★^2 /* b★))
214+
L★ = ifelse(b★ == 0, Inf, u★^2 /* b★))
215215
form = flux_formulation.similarity_form
216216

217217
χu = ϰ / similarity_profile(form, ψu, Δh, ℓu₀, L★)
@@ -253,7 +253,7 @@ Note that the Monin--Obukhov characteristic length scale is defined
253253
in terms of ``b_★`` and additionally the Von Karman constant ``ϰ``,
254254
255255
```math
256-
L_★ = - u_★² / ϰ b_★ .
256+
L_★ = u_★² / ϰ b_★ .
257257
```
258258
"""
259259
@inline function buoyancy_scale(θ★, q★, ℂ, 𝒬, g)

0 commit comments

Comments
 (0)