Ignore:
Timestamp:
Oct 8, 2014, 9:26:28 AM (10 years ago)
Author:
slebonnois
Message:

SL: update to newstart/start2archive tools in Venus+Titan / additional diagnostics in radiative fluxes for Titan

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/phytitan/cooling.F

    r888 r1356  
    1       SUBROUTINE COOLING(NG,NL,PRESS,TEMP,Z,Q0,lwnet,pfluxi,icld)
     1      SUBROUTINE COOLING(NG,NL,PRESS,TEMP,Z,Q0,zlwup,zlwdn,pfluxi,icld)
    22
    33c=======================================================================
     
    3636c
    3737c      q0(nl-1)         radiative cooling in K/sec
    38 c      lwnet(nl)        net fluxes, (+) upward
     38c      zlwup(nl)         up fluxes,   (+) upward
     39c      zlwdn(nl)         down fluxes, (+) downward
    3940c      pfluxi          IR descendant a la surface (+ vers le bas)
    4041c
     
    7374      REAL PRESS(NG,NL),TEMP(NG,NL)
    7475      REAL Z(NG,NL),Q0(NG,NL-1)
    75       REAL lwnet(NG,NL),UBARI2
     76      REAL zlwup(NG,NL),zlwdn(NG,NL),UBARI2
    7677      real pfluxi(NG)
    7778
     
    147148      UBARI2=UBARI
    148149
    149 C ZERO THE NET FLUXES
     150C ZERO THE FLUXES
    150151         Q0    = 0.0
    151          lwnet = 0.0
     152         zlwup = 0.0
     153         zlwdn = 0.0
    152154
    153155c-----------------------------------------------------------------------
     
    2752773520      CONTINUE
    276278
    277 c compute the net IR flux, (+) upward:
     279c compute the up (+ upward) and down (+ downward) IR fluxes:
    278280c
    279281          DO J=1,NL
    280282          DO ig=1,NG
    281              lwnet(ig,J)= lwnet(ig,J)+ DWNI(K)*(FUPI(ig,J)-FDI(ig,J))
     283             zlwup(ig,J)= zlwup(ig,J)+ DWNI(K)*FUPI(ig,J)
     284             zlwdn(ig,J)= zlwdn(ig,J)+ DWNI(K)*FDI(ig,J)
    282285          ENDDO
    283286          ENDDO
     
    312315      DO 3550 ig=1,NG
    313316         pfluxi(ig)  = 1.e-3*pfluxi(ig)
    314          lwnet(ig,:) = 1.e-3*lwnet(ig,:)
     317         zlwup(ig,:) = 1.e-3*zlwup(ig,:)
     318         zlwdn(ig,:) = 1.e-3*zlwdn(ig,:)
    3153193550  CONTINUE
    316320
Note: See TracChangeset for help on using the changeset viewer.