--- trunk/Sources/dyn3d/conf_gcm.f 2015/09/29 19:48:59 171 +++ trunk/Sources/dyn3d/conf_gcm.f 2017/04/28 13:22:36 223 @@ -2,7 +2,7 @@ IMPLICIT NONE - INTEGER:: nday = 10 ! nombre de jours d'int\'egration + INTEGER:: nday = 1 ! nombre de jours d'int\'egration integer:: day_step = 240 ! nombre de pas de temps de la dynamique par jour integer:: iperiod = 5 ! periode pour le pas Matsuno (en pas de temps) @@ -26,8 +26,7 @@ integer:: periodav = 1 ! time interval between outputs in the dynamical part, in days - logical:: offline = .FALSE. - ! permet de mettre en route la nouvelle parametrisation de l'eau liquide + logical:: offline = .FALSE. ! output variables for offline transport integer:: prt_level = 0 ! niveau d'impression souhait\'e (0 = minimum) @@ -35,11 +34,8 @@ ! Help = Choix du schema d'integration temporel. ! y = pure Matsuno sinon c'est du Matsuno-leapfrog - INTEGER:: iflag_phys = 1 - ! contr\^ole l'appel \`a la physique : - ! 0 : pas de physique - ! 1 : physique normale (appel \`a phylmd, phymars...) (default) - ! 2 : rappel Newtonien pour la temp\'erature + friction au sol + logical:: iflag_phys = .true. ! call parameterizations of physics + INTEGER, SAVE:: lmt_pas ! number of time steps of "physics" per day contains @@ -49,7 +45,7 @@ ! Version du 29/04/97 use abort_gcm_m, only: abort_gcm - use comdissnew, only: read_comdissnew + use nr_util, only: assert use unit_nml_m, only: unit_nml namelist /conf_gcm_nml/ raz_date, nday, day_step, iperiod, iapp_tracvl, & @@ -71,8 +67,6 @@ read(unit=*, nml=logic_nml) write(unit_nml, nml=logic_nml) - call read_comdissnew - print *, "Enter namelist 'conf_gcm_nml'." read(unit=*, nml=conf_gcm_nml) write(unit_nml, nml=conf_gcm_nml) @@ -83,6 +77,12 @@ IF (MOD(day_step, iphysiq)/= 0) call abort_gcm("conf_gcm", & 'Il faut choisir un nombre de pas par jour multiple de "iphysiq".') + call assert(mod(iphysiq, iperiod) == 0, & + "conf_gcm -- iphysiq must be multiple of iperiod") + + lmt_pas = day_step / iphysiq + print *, 'Number of time steps of "physics" per day: ', lmt_pas + END SUBROUTINE conf_gcm end module conf_gcm_m