Changeset 1593 for trunk/LMDZ.GENERIC


Ignore:
Timestamp:
Sep 9, 2016, 4:04:54 PM (8 years ago)
Author:
emillour
Message:

Common dynamics:

  • some cleanup around unused or unecessary parameters in the dynamics (ecritphy, grireg and physic) to harmonize with LMDZ5 (Earth dyn core).
  • associated changes in LMDZ.MARS and LMDZ.GENERIC

EM

Location:
trunk/LMDZ.GENERIC
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/README

    r1589 r1593  
    12471247- fix newstart which was broken due to recent updates of the physics/dynamics
    12481248  interface.
     1249
     1250== 09/09/2016 == EM
     1251- Some code cleanup (and harmonization with LMDZ.COMMON): remove "ecritphy"
     1252  from the dynamics (since it is read/used in the physics) and remove
     1253  "grireg" (unused) and "physic" (use iflag_phys instead) parameters from
     1254  the dynamics.
  • trunk/LMDZ.GENERIC/libf/dyn3d/control_mod.F90

    r1416 r1593  
    1212  integer,save :: anneeref ! reference year # ! not used
    1313  real,save :: periodav
    14   integer,save :: ecritphy ! output data in "diagfi.nc" every ecritphy dynamical steps
     14!  integer,save :: ecritphy ! output data in "diagfi.nc" every ecritphy dynamical steps
    1515  character(len=10),save :: planet_type ! planet type ('earth','mars',...)
    1616  character(len=4),save :: config_inca
  • trunk/LMDZ.GENERIC/libf/dyn3d/defrun_new.F

    r1422 r1593  
    4040      use sponge_mod,only: callsponge,nsponge,mode_sponge,tetasponge
    4141      use control_mod,only: nday, day_step, iperiod, anneeref,
    42      &                      iconser, idissip, iphysiq, ecritphy
    43       USE logic_mod, ONLY: hybrid,purmats,physic,grireg,fxyhypb,ysinus
     42     &                      iconser, idissip, iphysiq
     43      USE logic_mod, ONLY: hybrid,purmats,fxyhypb,ysinus,iflag_phys
    4444      USE serre_mod, ONLY: clon,clat,grossismx,grossismy,dzoomx,dzoomy,
    4545     .                  alphax,alphay,taux,tauy
     
    210210        WRITE(lunout,*) ""
    211211        WRITE(lunout,*) "avec ou sans physique"
    212         physic=.true. ! default value
    213         call getin("physic",physic)
    214         WRITE(lunout,*)" physic = ",physic
     212!        physic=.true. ! default value
     213!        call getin("physic",physic)
     214!        WRITE(lunout,*)" physic = ",physic
     215        iflag_phys=1 ! default value
     216        call getin("iflag_phys",iflag_phys)
     217        WRITE(lunout,*)" iflag_phys = ",iflag_phys
    215218
    216219        WRITE(lunout,*) ""
     
    220223        WRITE(lunout,*)" iphysiq = ",iphysiq
    221224
    222         WRITE(lunout,*) ""
    223         WRITE(lunout,*) "choix d'une grille reguliere"
    224         grireg=.true.
    225         call getin("grireg",grireg)
    226         WRITE(lunout,*)" grireg = ",grireg
     225!        WRITE(lunout,*) ""
     226!        WRITE(lunout,*) "choix d'une grille reguliere"
     227!        grireg=.true.
     228!        call getin("grireg",grireg)
     229!        WRITE(lunout,*)" grireg = ",grireg
    227230
    228231ccc   .... P.Le Van, ajout le 03/01/96 pour l'ecriture phys ...
    229232c
    230         WRITE(lunout,*) ""
    231         WRITE(lunout,*) "frequence (en pas) de l'ecriture ",
    232      & "du fichier diagfi.nc"
    233         ecritphy=240
    234         call getin("ecritphy",ecritphy)
    235         WRITE(lunout,*)" ecritphy = ",ecritphy
     233!        WRITE(lunout,*) ""
     234!        WRITE(lunout,*) "frequence (en pas) de l'ecriture ",
     235!     & "du fichier diagfi.nc"
     236!        ecritphy=240
     237!        call getin("ecritphy",ecritphy)
     238!        WRITE(lunout,*)" ecritphy = ",ecritphy
    236239
    237240ccc  ....   P. Le Van , ajout  le 7/03/95 .pour le zoom ...
  • trunk/LMDZ.GENERIC/libf/dyn3d/gcm.F

    r1576 r1593  
    55      use sponge_mod,only: callsponge,mode_sponge,sponge
    66      use control_mod, only: nday, day_step, iperiod, iphysiq,
    7      &                       iconser, ecritphy, idissip
     7     &                       iconser, idissip
    88!      use comgeomphy, only: initcomgeomphy
    99      USE mod_const_mpi, ONLY: COMM_LMDZ
     
    1212      USE comconst_mod, ONLY: daysec,dtvr,dtphys,dtdiss,rad,g,r,cpp
    1313      USE logic_mod, ONLY: ecripar,forward,leapf,apphys,statcl,conser,
    14      .          apdiss,purmats,physic,apphys
     14     .          apdiss,purmats,iflag_phys,apphys
    1515      USE temps_mod, ONLY: day_ini,day_end,itaufin,dt
    1616      USE iniphysiq_mod, ONLY: iniphysiq
     
    260260     &                  rlatu,rlatv,rlonu,rlonv,
    261261     &                  aire,cu,cv,rad,g,r,cpp,
    262      &                  1)
    263 !     &                iflag_phys)
     262     &                iflag_phys)
    264263!#endif
    265264!         call_iniphys=.false.
     
    369368         IF( MOD(itau,idissip ).EQ.0.AND..NOT.forward ) apdiss = .TRUE.
    370369         IF( MOD(itau,iphysiq ).EQ.0.AND..NOT.forward
    371      $                              .AND.   physic    ) apphys = .TRUE.
     370     $                        .AND. (iflag_phys.eq.1) ) apphys = .TRUE.
    372371      ELSE
    373372         IF( MOD(itau   ,iconser) .EQ. 0              ) conser = .TRUE.
    374373         IF( MOD(itau+1,idissip)  .EQ. 0              ) apdiss = .TRUE.
    375          IF( MOD(itau+1,iphysiq).EQ.0. AND. physic    ) apphys = .TRUE.
     374         IF( MOD(itau+1,iphysiq).EQ.0
     375     &                     .AND. (iflag_phys.eq.1)    ) apphys = .TRUE.
    376376      END IF
    377377
     
    473473           rdayvrai   = rdaym_ini  + day_ini
    474474
    475            IF ( ecritphy.LT.1. )  THEN
    476              rday_ecri = rdaym_ini
    477            ELSE
     475! Ehouarn: what was this for ??
     476!           IF ( ecritphy.LT.1. )  THEN
     477!             rday_ecri = rdaym_ini
     478!           ELSE
    478479             rday_ecri = INT(rdaym_ini)+INT(day_ini)
    479            ENDIF
     480!           ENDIF
    480481c
    481482
  • trunk/LMDZ.GENERIC/libf/dyn3d/logic_mod.F90

    r1422 r1593  
    33IMPLICIT NONE 
    44
    5 LOGICAL purmats,physic,forward,leapf,apphys,grireg,statcl,conser, &
     5LOGICAL purmats,forward,leapf,apphys,statcl,conser, &
    66     & apdiss,apdelq,saison,ecripar,fxyhypb,ysinus,hybrid,autozlevs
    77
     8INTEGER iflag_phys ! ==1 if calling a physics package
    89
    910END MODULE logic_mod
  • trunk/LMDZ.GENERIC/libf/dynphy_lonlat/phystd/start2archive.F

    r1543 r1593  
    3535      USE comvert_mod, ONLY: ap,bp
    3636      USE comconst_mod, ONLY: daysec,dtphys,rad,g,r,cpp
    37       USE logic_mod, ONLY: grireg
    3837      USE temps_mod, ONLY: day_ini
    3938      USE iniphysiq_mod, ONLY: iniphysiq
     
    145144
    146145      CALL defrun_new(99, .TRUE. )
    147       grireg   = .TRUE.
    148146
    149147      planet_type="generic"
Note: See TracChangeset for help on using the changeset viewer.