Skip to content

Commit 66f6ae0

Browse files
committed
Merge branch 'atmosphere/fix_depv_dt_mix_check' into hotfix-v7.2 (PR #937)
This merge corrects a check on the availability of the dtheta_dt_mix variable 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 merge 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.
2 parents 9588c61 + 7e514a3 commit 66f6ae0

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)