Skip to content

Commit 5237ced

Browse files
authored
bugfix in updating momentum state (#26)
1 parent 4042d6e commit 5237ced

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AtmosphereModels/update_atmosphere_model_state.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ end
207207
# Note: independent of y
208208
ρᵣ = @inbounds reference_density[i, j, k]
209209

210-
return ( - div_𝐯v(i, j, k, grid, advection, velocities, momentum.ρu)
210+
return ( - div_𝐯v(i, j, k, grid, advection, velocities, momentum.ρv)
211211
- y_f_cross_U(i, j, k, grid, coriolis, momentum)
212212
- ρᵣ * hydrostatic_pressure_gradient_y(i, j, k, grid, hydrostatic_pressure_anomaly)
213213
+ forcing(i, j, k, grid, clock, model_fields))
@@ -222,7 +222,7 @@ end
222222
model_fields,
223223
forcing)
224224

225-
return ( - div_𝐯v(i, j, k, grid, advection, velocities, momentum.ρu)
225+
return ( - div_𝐯w(i, j, k, grid, advection, velocities, momentum.ρw)
226226
- z_f_cross_U(i, j, k, grid, coriolis, momentum)
227227
+ forcing(i, j, k, grid, clock, model_fields))
228228
end

0 commit comments

Comments
 (0)