Skip to content

Commit

Permalink
simplify g' from b
Browse files Browse the repository at this point in the history
  • Loading branch information
navidcy committed Dec 19, 2023
1 parent 98f1f19 commit a480b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/multilayerqg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ function Params(nlayers::Int, f₀, β, b, H, U, eta, topographic_pv_gradient,
b = reshape(T.(b), (1, 1, nlayers))
H = Tuple(T.(H))

g′ = -(b[2:nlayers] - b[1:nlayers-1]) # reduced gravity at each interface
g′ = b[1:nlayers-1] - b[2:nlayers] # reduced gravity at each interface

Fm = @. T(f₀^2 / (g′ * H[2:nlayers]))
Fp = @. T(f₀^2 / (g′ * H[1:nlayers-1]))
Expand Down

0 comments on commit a480b79

Please sign in to comment.