Changeset 4244 for dynamico_lmdz


Ignore:
Timestamp:
Jun 13, 2020, 1:59:26 PM (4 years ago)
Author:
dubos
Message:

simple_physics : output LW fluxes

Location:
dynamico_lmdz/simple_physics
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • dynamico_lmdz/simple_physics/config/DYNAMICO/TEST/field_def_physics.xml

    r4243 r4244  
    3939        <field id="phyparam_swflux_down" name="swflux_down" long_name="Downward SW radiative flux" unit="W/m2" />
    4040        <field id="phyparam_swflux_up"   name="swflux_up"   long_name="Upward SW radiative flux"   unit="W/m2" />
     41        <field id="phyparam_lwflux_down" name="lwflux_down" long_name="Downward LW radiative flux" unit="W/m2" />
     42        <field id="phyparam_lwflux_up"   name="lwflux_up"   long_name="Upward LW radiative flux"   unit="W/m2" />
    4143      </field_group>
    4244     
  • dynamico_lmdz/simple_physics/config/DYNAMICO/TEST/file_def_physics.xml

    r4243 r4244  
    2020      <field field_ref="phyparam_swflux_down" />
    2121      <field field_ref="phyparam_swflux_up" />
     22      <field field_ref="phyparam_lwflux_down" />
     23      <field field_ref="phyparam_lwflux_up" />
    2224
    2325    </field_group>
  • dynamico_lmdz/simple_physics/phyparam/physics/radiative_lw.F90

    r4233 r4244  
    1818       pp,ps_rad,ptsurf,pt,              &
    1919       pfluxir,pdtlw,                    &
    20        lwrite)
     20       lverbose, lwrite)
    2121    USE phys_const, ONLY : cpp, g
     22    USE writefield_mod, ONLY : writefield
    2223    !=======================================================================
    2324    !
     
    5657    REAL,    INTENT(IN)  ::  ptsurf(ngrid),pt(ngrid,nlayer),pp(ngrid,nlayer+1)
    5758    REAL,    INTENT(OUT) ::  pdtlw(ngrid,nlayer),pfluxir(ngrid)
    58     LOGICAL, INTENT(IN)  :: lwrite
     59    LOGICAL, INTENT(IN)  :: lwrite, lverbose
    5960
    6061    !   variables locales:
     
    8687          ENDDO
    8788       ENDDO
    88        IF(lwrite) THEN
     89       IF(lverbose) THEN
    8990          DO ilev=1,nlayer
    9091             WRITELOG(*,*) ' up(',ilev,')  =  ',zup(ngrid/2+1,ilev)
     
    205206    !   ------------------------
    206207
    207     IF (lwrite) THEN
     208    IF (lverbose) THEN
    208209       WRITELOG(*,*) 'Diagnostique rayonnement thermique'
    209210       WRITELOG(*,*) 'temperature     ', &
     
    219220    ENDIF
    220221
     222    IF(lwrite) THEN
     223       CALL writefield('lwflux_up', 'Upward LW flux', 'W/m2', zfluxup)
     224       CALL writefield('lwflux_down', 'Downward LW flux', 'W/m2', zfluxdn)
     225    END IF
    221226    !-----------------------------------------------------------------------
    222227
  • dynamico_lmdz/simple_physics/phyparam/physics/radiative_mod.F90

    r4242 r4244  
    9595         &             pplev,ps_rad,tsurf,pt, &
    9696         &             zfluxlw,zdtlw,         &
    97          &             lverbose)
     97         &             lverbose, lwrite)
    9898
    9999    !    2.4 surface fluxes
Note: See TracChangeset for help on using the changeset viewer.