Changeset 1637
- Timestamp:
- Nov 30, 2016, 7:29:32 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/physiq_mod.F90
r1626 r1637 344 344 real zdtadj(ngrid,nlayer) ! Convadj Diagnostic. 345 345 real zdtdyn(ngrid,nlayer) ! Dynamical Heating (K/s). 346 real zdudyn(ngrid,nlayer) ! Dynamical Zonal Wind tendency (m.s-2). 346 347 real,allocatable,dimension(:,:),save :: ztprevious ! Previous loop Atmospheric Temperature (K) ! Useful for Dynamical Heating calculation. 347 !$OMP THREADPRIVATE(ztprevious) 348 real,allocatable,dimension(:,:),save :: zuprevious ! Previous loop Zonal Wind (m.s-1) ! Useful for Zonal Wind tendency calculation. 349 !$OMP THREADPRIVATE(ztprevious,zuprevious) 348 350 349 351 real reff(ngrid,nlayer) ! Effective dust radius (used if doubleq=T). … … 469 471 ALLOCATE(q2(ngrid,nlayer+1)) 470 472 ALLOCATE(ztprevious(ngrid,nlayer)) 473 ALLOCATE(zuprevious(ngrid,nlayer)) 471 474 ALLOCATE(cloudfrac(ngrid,nlayer)) 472 475 ALLOCATE(totcloudfrac(ngrid)) … … 666 669 qsurf_hist(:,:)=qsurf(:,:) 667 670 668 ! Initialize variable for dynamical heating diagnostic.669 ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 671 ! Initialize variable for dynamical heating and zonal wind tendency diagnostic 672 ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 670 673 ztprevious(:,:)=pt(:,:) 674 zuprevious(:,:)=pu(:,:) 671 675 672 676 ! Set temperature just above condensation temperature (for Early Mars) … … 1634 1638 1635 1639 ! Diagnostic. 1636 zdtdyn(1:ngrid,1:nlayer) = pt(1:ngrid,1:nlayer)-ztprevious(1:ngrid,1:nlayer)1640 zdtdyn(1:ngrid,1:nlayer) = (pt(1:ngrid,1:nlayer)-ztprevious(1:ngrid,1:nlayer)) / ptimestep 1637 1641 ztprevious(1:ngrid,1:nlayer) = zt(1:ngrid,1:nlayer) 1642 1643 zdudyn(1:ngrid,1:nlayer) = (pu(1:ngrid,1:nlayer)-zuprevious(1:ngrid,1:nlayer)) / ptimestep 1644 zuprevious(1:ngrid,1:nlayer) = zu(1:ngrid,1:nlayer) 1638 1645 1639 1646 if(firstcall)then 1640 1647 zdtdyn(1:ngrid,1:nlayer)=0.0 1648 zdudyn(1:ngrid,1:nlayer)=0.0 1641 1649 endif 1642 1650 1643 1651 ! Dynamical heating diagnostic. 1644 1652 do ig=1,ngrid 1645 fluxdyn(ig)= SUM(zdtdyn(ig,:) *mass(ig,:))*cpp /ptimestep1653 fluxdyn(ig)= SUM(zdtdyn(ig,:) *mass(ig,:))*cpp 1646 1654 enddo 1647 1655
Note: See TracChangeset
for help on using the changeset viewer.