--- trunk/Sources/dyn3d/conf_gcm.f 2015/07/07 17:49:23 154 +++ trunk/Sources/dyn3d/conf_gcm.f 2016/06/08 12:23:41 202 @@ -41,6 +41,8 @@ ! 1 : physique normale (appel \`a phylmd, phymars...) (default) ! 2 : rappel Newtonien pour la temp\'erature + friction au sol + INTEGER, SAVE:: lmt_pas ! number of time steps of "physics" per day + contains SUBROUTINE conf_gcm @@ -49,7 +51,6 @@ ! Version du 29/04/97 use abort_gcm_m, only: abort_gcm - use comdissnew, only: read_comdissnew use unit_nml_m, only: unit_nml namelist /conf_gcm_nml/ raz_date, nday, day_step, iperiod, iapp_tracvl, & @@ -71,21 +72,18 @@ 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) - IF (MOD(day_step, iperiod) /= 0) call abort_gcm(modname = "conf_gcm", & - message = & - 'Il faut choisir un nombre de pas par jour multiple de "iperiod".', & - ierr = 1) - - IF (MOD(day_step, iphysiq)/= 0) call abort_gcm(modname = "conf_gcm", & - message = & - 'Il faut choisir un nombre de pas par jour multiple de "iphysiq".', & - ierr = 1) + IF (MOD(day_step, iperiod) /= 0) call abort_gcm("conf_gcm", & + 'Il faut choisir un nombre de pas par jour multiple de "iperiod".') + + IF (MOD(day_step, iphysiq)/= 0) call abort_gcm("conf_gcm", & + 'Il faut choisir un nombre de pas par jour multiple de "iphysiq".') + + lmt_pas = day_step / iphysiq + print *, 'Number of time steps of "physics" per day: ', lmt_pas END SUBROUTINE conf_gcm