--- trunk/Sources/dyn3d/conf_gcm.f 2016/05/09 19:56:28 191 +++ trunk/dyn3d/conf_gcm.f 2018/04/19 17:54:55 266 @@ -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) @@ -13,8 +13,6 @@ integer:: iconser = 240 ! number of time steps between output of control variables - integer:: iecri = 1 ! time interval between outputs to "dyn_hist.nc" (in days) - integer:: iphysiq = 5 ! number of time steps of dynamics between calls to physics @@ -26,20 +24,14 @@ 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 - integer:: prt_level = 0 ! niveau d'impression souhait\'e (0 = minimum) LOGICAL:: purmats= .FALSE. ! 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,10 +41,11 @@ ! 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, & - iconser, iecri, periodav, iphysiq, offline + iconser, periodav, iphysiq namelist /iniprint_nml/ prt_level @@ -80,6 +73,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