Changeset 2446 for trunk


Ignore:
Timestamp:
Jan 19, 2021, 9:52:48 AM (4 years ago)
Author:
emillour
Message:

Generic model:
Minor fixes:

  • callcorrk: OLR_nu(:,:) and OSR_nu(:,:) should be initialized every call,

not just at the first call

  • physiq: only compute dtaui and dtauv using CLFvarying contributions

if they are provided (i.e. if flag diagdtau is .true.)

EM

Location:
trunk/LMDZ.GENERIC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/README

    r2436 r2446  
    16111611Use "#ModernTrac-v1" flag as first line of "traceur.def" to use this option
    16121612Further details in "LMDZ.GENERIC/deftank/traceur.def.modern"
     1613
     1614== 19/01/2021 == EM
     1615Minor fixes:
     1616- callcorrk: OLR_nu(:,:) and OSR_nu(:,:) should be initialized every call,
     1617             not just at the first call
     1618- physiq: only compute dtaui and dtauv using CLFvarying contributions
     1619          if they are provided (i.e. if flag diagdtau is .true.)
  • trunk/LMDZ.GENERIC/libf/phystd/callcorrk.F90

    r2297 r2446  
    273273         endif
    274274
    275          OLR_nu(:,:) = 0.
    276          OSR_nu(:,:) = 0.
    277 
    278275         if (ngrid.eq.1) then
    279276            PRINT*, 'Simulate global averaged conditions ?'
     
    310307      qsiaer(:,:,:)=0.0
    311308      giaer(:,:,:) =0.0
     309
     310      OLR_nu(:,:) = 0.
     311      OSR_nu(:,:) = 0.
    312312
    313313!--------------------------------------------------
  • trunk/LMDZ.GENERIC/libf/phystd/physiq_mod.F90

    r2428 r2446  
    4747      use comcstfi_mod, only: pi, g, rcp, r, rad, mugaz, cpp
    4848      use time_phylmdz_mod, only: daysec
    49       use callkeys_mod
     49      use callkeys_mod, only: albedo_spectral_mode, calladj, calldifv, &
     50                              calllott_nonoro, callrad, callsoil, callstats, &
     51                              calltherm, CLFvarying, co2cond, corrk, diagdtau, &
     52                              diurnal, enertest, fat1au, flatten, j2, &
     53                              hydrology, icetstep, intheat, iradia, kastprof, &
     54                              lwrite, mass_redistrib, massplanet, meanOLR, &
     55                              nearco2cond, newtonian, noseason_day, oblate, &
     56                              ok_slab_ocean, photochem, rings_shadow, rmean, &
     57                              season, sedimentation, sourceevol, specOLR, &
     58                              startphy_file, testradtimes, tlocked, &
     59                              tracer, UseTurbDiff, water, watercond, &
     60                              waterrain
    5061      use nonoro_gwd_ran_mod, only: nonoro_gwd_ran
    5162      use conc_mod
     
    933944                     OSR_nu(ig,1:L_NSPECTV) = ntf*OSR_nu1(ig,1:L_NSPECTV) + tf*OSR_nu(ig,1:L_NSPECTV)                       
    934945                     OLR_nu(ig,1:L_NSPECTI) = ntf*OLR_nu1(ig,1:L_NSPECTI) + tf*OLR_nu(ig,1:L_NSPECTI)                       
    935                      int_dtauv(ig,:,1:L_NSPECTV) = ntf*int_dtauv1(ig,:,1:L_NSPECTV) + tf*int_dtauv(ig,:,1:L_NSPECTV)                       
    936                      int_dtaui(ig,:,1:L_NSPECTI) = ntf*int_dtaui1(ig,:,1:L_NSPECTI) + tf*int_dtaui(ig,:,1:L_NSPECTI)                       
     946                     if (diagdtau) then
     947                       int_dtauv(ig,:,1:L_NSPECTV) = ntf*int_dtauv1(ig,:,1:L_NSPECTV) + tf*int_dtauv(ig,:,1:L_NSPECTV)                       
     948                       int_dtaui(ig,:,1:L_NSPECTI) = ntf*int_dtaui1(ig,:,1:L_NSPECTI) + tf*int_dtaui(ig,:,1:L_NSPECTI)                       
     949                     endif
    937950                  enddo                               
    938951
Note: See TracChangeset for help on using the changeset viewer.