--- trunk/Sources/dyn3d/conf_gcm.f 2016/06/08 12:23:41 202 +++ trunk/Sources/dyn3d/conf_gcm.f 2017/01/12 12:31:31 212 @@ -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) @@ -35,12 +35,7 @@ ! 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 @@ -51,6 +46,7 @@ ! Version du 29/04/97 use abort_gcm_m, only: abort_gcm + use nr_util, only: assert use unit_nml_m, only: unit_nml namelist /conf_gcm_nml/ raz_date, nday, day_step, iperiod, iapp_tracvl, & @@ -82,6 +78,9 @@ 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