Ignore:
Timestamp:
Jul 10, 2020, 11:50:17 PM (4 years ago)
Author:
oboucher
Message:

The fraction of SW down radiation that is diffuse is extracted from radlwsw.F90 and passed on to pbl_surface for inclusion in fields_out for transfer to ORCHIDEE if it requested in input file coupling_fields.def. Hence there is nothing automatic here. The fraction of SW down radiation is also added as a diagnostic. To satisfy the case when this new quantity is used in ORCHIDEE, then it is added in the restart (and read in case it is there).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/phyetat0.F90

    r3581 r3756  
    1515       ftsol, pbl_tke, pctsrf, q_ancien, ql_ancien, qs_ancien, radpas, radsol, rain_fall, ratqs, &
    1616       rnebcon, rugoro, sig1, snow_fall, solaire_etat0, sollw, sollwdown, &
    17        solsw, t_ancien, u_ancien, v_ancien, w01, wake_cstar, wake_deltaq, &
     17       solsw, solswfdiff, t_ancien, u_ancien, v_ancien, w01, wake_cstar, wake_deltaq, &
    1818       wake_deltat, wake_delta_pbl_TKE, delta_tsurf, wake_fip, wake_pe, &
    1919       wake_s, wake_dens, zgam, zmax0, zmea, zpic, zsig, &
     
    307307
    308308  found=phyetat0_get(1,solsw,"solsw","net SW radiation surf",0.)
     309  found=phyetat0_get(1,solswfdiff,"solswfdiff","fraction of SW radiation surf that is diffuse",1.)
    309310  found=phyetat0_get(1,sollw,"sollw","net LW radiation surf",0.)
    310311  found=phyetat0_get(1,sollwdown,"sollwdown","down LW radiation surf",0.)
    311312  IF (.NOT. found) THEN
    312      sollwdown = 0. ;  zts=0.
    313      do nsrf=1,nbsrf
     313     sollwdown(:) = 0. ;  zts(:)=0.
     314     DO nsrf=1,nbsrf
    314315        zts(:)=zts(:)+ftsol(:,nsrf)*pctsrf(:,nsrf)
    315      enddo
     316     ENDDO
    316317     sollwdown(:)=sollw(:)+RSIGMA*zts(:)**4
    317318  ENDIF
Note: See TracChangeset for help on using the changeset viewer.