Skip to content

Commit

Permalink
Correct an indexing error in the computation of horizontal mixing for w.
Browse files Browse the repository at this point in the history
Thanks to Matus Martini for finding this bug.
  • Loading branch information
mgduda committed Sep 4, 2013
1 parent 1bf1146 commit 2686617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core_atmosphere/dynamics/mpas_atm_time_integration.F
Original file line number Diff line number Diff line change
Expand Up @@ -2581,7 +2581,7 @@ subroutine atm_compute_dyn_tend(tend, s, diag, grid, rk_step, dt)
if (cell1 <= nCellsSolve .or. cell2 <= nCellsSolve) then
do k=2,nVertLevels
theta_turb_flux = 0.25*(kdiff(k,cell1)+kdiff(k,cell2)+kdiff(k-1,cell1)+kdiff(k,cell2)) &
theta_turb_flux = 0.25*(kdiff(k,cell1)+kdiff(k,cell2)+kdiff(k-1,cell1)+kdiff(k-1,cell2)) &
*(w(k,cell2) - w(k,cell1))/dcEdge(iEdge)
theta_turb_flux = theta_turb_flux * meshScalingDel2(iEdge)
flux = 0.5*dvEdge (iEdge) * (rho_edge(k,iEdge)+rho_edge(k-1,iEdge)) * theta_turb_flux
Expand Down

0 comments on commit 2686617

Please sign in to comment.