Skip to content

Commit 7e514a3

Browse files
committed
Correct check on availability of dtheta_dt_mix when computing depv_dt_mix
The code to compute depv_dt_mix in the calc_pvBudget routine previously checked that the dtheta_dt_mp variable had been successfully been retrieved from the diag pool, when instead the check should have been on the dtheta_dt_mix variable. Note that the fix in this commit isn't expected to have any impact in practice, since both dtheta_dt_mp and dtheta_dt_mix should always be found in the diag pool.
1 parent 51d5624 commit 7e514a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core_atmosphere/diagnostics/pv_diagnostics.F

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ subroutine calc_pvBudget(state, time_lev, diag, mesh, tend, tend_physics)
14571457
depv_dt_mp(k,iCell) = 0.0_RKIND
14581458
end if
14591459

1460-
if (associated(dtheta_dt_mp)) then
1460+
if (associated(dtheta_dt_mix)) then
14611461
call calc_grad_cell(gradtheta, &
14621462
iCell, k, nVertLevels, nEdgesOnCell(iCell), verticesOnCell, kiteAreasOnVertex, &
14631463
cellsOnCell, edgesOnCell, cellsOnEdge, dvEdge, edgeNormalVectors, &

0 commit comments

Comments
 (0)