Skip to content

Commit 4983da5

Browse files
author
Andrea Rosendahl
committed
fixes in energy diagnostics
1 parent 3ca23dc commit 4983da5

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/physics/cam/cam_diagnostics.F90

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,11 @@ subroutine diag_init_dry(pbuf2d)
308308
call addfld ('ZBOT', horiz_only, 'A', 'm','Lowest model level height')
309309

310310
call addfld ('ATMEINT', horiz_only, 'A', 'J/m2','Vertically integrated total atmospheric energy ')
311-
call addfld ('INTEnTrInt', horiz_only, 'A', 'W/m3', 'Meridional transport of internal energy - need to integrate in x to get the total')
312-
call addfld ('POTEnTrInt', horiz_only, 'A', 'W/m3', 'Meridional transport of potential energy - need to integrate in x to get the total')
313-
call addfld ('LATEnTrInt', horiz_only, 'A', 'W/m3', 'Meridional transport of latent energy - need to integrate in x to get the total')
314-
call addfld ('KINEnTrInt', horiz_only, 'A', 'W/m3', 'Meridional transport of kinetic energy - need to integrate in x to get the total')
315-
call addfld ('TOTEnTrInt', horiz_only, 'A', 'W/m3', 'Meridional transport of total energy - need to integrate in x to get the total')
311+
call addfld ('INTEnTrInt', horiz_only, 'A', 'W/m3', 'Meridional transport of internal energy')
312+
call addfld ('POTEnTrInt', horiz_only, 'A', 'W/m3', 'Meridional transport of potential energy')
313+
call addfld ('LATEnTrInt', horiz_only, 'A', 'W/m3', 'Meridional transport of latent energy')
314+
call addfld ('KINEnTrInt', horiz_only, 'A', 'W/m3', 'Meridional transport of kinetic energy')
315+
call addfld ('TOTEnTrInt', horiz_only, 'A', 'W/m3', 'Meridional transport of total energy')
316316

317317
if (history_amwg) then
318318
call add_default ('PHIS ' , 1, ' ')
@@ -1437,7 +1437,7 @@ subroutine diag_phys_writeout_moist(state, pbuf, p_surf_t)
14371437
do k=2,pver
14381438
ftem3(:ncol) = ftem3(:ncol) + ftem(:ncol,k)
14391439
end do
1440-
call outfld ('INTEnTrInt', ftem3(:ncol), ncol ,ncol)
1440+
call outfld ('INTEnTrInt', ftem3(:ncol), ncol ,lchnk)
14411441

14421442
!! latent energy transport Lv*Q*v*dp/g
14431443
ftem(:ncol,:) = (latvap*state%q(:ncol,:,ixq)*state%v(:ncol,:))*(state%pdel(:ncol,:)/gravit)
@@ -1447,7 +1447,7 @@ subroutine diag_phys_writeout_moist(state, pbuf, p_surf_t)
14471447
do k=2,pver
14481448
ftem3(:ncol) = ftem3(:ncol) + ftem(:ncol,k)
14491449
end do
1450-
call outfld ('LATEnTrInt', ftem3(:ncol) ,ncol ,ncol )
1450+
call outfld ('LATEnTrInt', ftem3(:ncol) ,ncol ,lchnk )
14511451

14521452
!! potential energy transport g*z*v*dp/g
14531453
ftem(:ncol,:) = (gravit*z3(:ncol,:)*state%v(:ncol,:))*(state%pdel(:ncol,:)/gravit)
@@ -1457,7 +1457,7 @@ subroutine diag_phys_writeout_moist(state, pbuf, p_surf_t)
14571457
do k=2,pver
14581458
ftem3(:ncol) = ftem3(:ncol) + ftem(:ncol,k)
14591459
end do
1460-
call outfld ('POTEnTrInt',ftem3(:ncol) ,ncol ,ncol )
1460+
call outfld ('POTEnTrInt',ftem3(:ncol) ,ncol ,lchnk )
14611461

14621462
!! kinetic energy transport 0.5*(u²+v²)*v*dp/g
14631463
ftem(:ncol,:) = ((0.5_r8*(state%u(:ncol,:)**2+state%v(:ncol,:)**2))*state%v(:ncol,:))*(state%pdel(:ncol,:)/gravit)
@@ -1467,7 +1467,7 @@ subroutine diag_phys_writeout_moist(state, pbuf, p_surf_t)
14671467
do k=2,pver
14681468
ftem3(:ncol) = ftem3(:ncol) + ftem(:ncol,k)
14691469
end do
1470-
call outfld ('KINEnTrInt',ftem3(:ncol) ,ncol ,ncol )
1470+
call outfld ('KINEnTrInt',ftem3(:ncol) ,ncol ,lchnk )
14711471

14721472
!! Total energy transport Cp*T*v*dp/g + Lv*Q*v*dp/g + g*z*v*dp/g + 0.5*(u²+v²)*v*dp/g
14731473
ftem(:ncol,:) = (cpair*state%t(:ncol,:) + latvap*state%q(:ncol,:,ixq) + gravit*z3(:ncol,:) + &
@@ -1478,7 +1478,7 @@ subroutine diag_phys_writeout_moist(state, pbuf, p_surf_t)
14781478
do k=2,pver
14791479
ftem3(:ncol) = ftem3(:ncol) + ftem(:ncol,k)
14801480
end do
1481-
call outfld ('TOTEnTrInt',ftem3(:ncol) ,ncol ,ncol )
1481+
call outfld ('TOTEnTrInt',ftem3(:ncol) ,ncol ,lchnk )
14821482

14831483

14841484
!! Boundary layer atmospheric stability, temperature, water vapor diagnostics

0 commit comments

Comments
 (0)