source: LMDZ5/trunk/libf/dyn3dpar/control_mod.F90 @ 1577

Last change on this file since 1577 was 1577, checked in by Laurent Fairhead, 13 years ago

Modifications au code qui permettent de commencer une simulation à n'importe
quelle heure de la journée. On fait toujours un nombre entier de jours de
simulation.
On spécifie cette heure de départ dans la variable starttime du run.def (la
valeur est en jour et elle est à zéro par défaut).
La valeur est sauvegardée dans le fichier restart.nc. Les valeurs lues dans
le fichier start et le run.def sont comparées en début de simulation. La
simulation s'arrête si elles ne sont pas égales sauf si une remise à zéro de
la date a été demandée.
Par ailleurs, la fréquence de lecture des conditions aux limites a été modifiée
pour qu'à chaque changement de jour, celles-ci soient mises à jour (jusqu'à
maintenant elles étaient mises à jour à une fréquence donnée qui, en cas de
départ de simulation à une heure différente de minuit, ne correspondait pas
forcèment à un changement dans la date).
Validation effectuée en traçant le flux solaire descendant au sommet de
l'atmosphère à différentes heures de la journée, après un redémarrage, en
s'assurant que le maximum est bien là où il est sensé être.


Modifications to the code to enable it to be started at any time of the day.
The code still runs for an integer number of days.
The start time is specified using variable starttime in the run.def file (the
value is in days and is zero by default).
The start time is saved in the restart.nc file at the end of the simulation.
The values read in from the start.nc file and the run.def file are compared
at the start of the simulation. If they differ, the simulation is aborted
unless the raz_date variable has been set.
Furthermore, the frequency at which boundary conditions are read in has been
modified so that they are updated everyday at midnight (until now, they were
updated at a certain frequency that, in case of a simulation starting at a time
other than midnight, did not ensure that those conditions would be updated each
day at midnight)
The modifications were validated by plotting the downward solaf flux at TOA at
different times of the day (and after having restarted the simulation) and
ensuring that the maximum of flux was at the right place according to local
time.

File size: 893 bytes
Line 
1!
2! $Id $
3!
4
5MODULE control_mod
6
7! LF 01/2010
8! Remplacement du fichier et common control
9
10  IMPLICIT NONE
11
12  REAL    :: periodav, starttime
13  INTEGER :: nday,day_step,iperiod,iapp_tracvl,nsplit_phys
14  INTEGER :: iconser,iecri,dissip_period,iphysiq,iecrimoy
15  INTEGER :: dayref,anneeref, raz_date, ip_ebil_dyn
16  LOGICAL :: offline
17  CHARACTER (len=4)  :: config_inca
18  CHARACTER (len=10) :: planet_type ! planet type ('earth','mars',...)
19  LOGICAL output_grads_dyn ! output dynamics diagnostics in
20                           ! binary grads file 'dyn.dat' (y/n)
21  LOGICAL ok_dynzon  ! output zonal transports in dynzon.nc file
22  LOGICAL ok_dyn_ins ! output instantaneous values of fields
23                     ! in the dynamics in NetCDF files dyn_hist*nc
24  LOGICAL ok_dyn_ave ! output averaged values of fields in the dynamics
25                     ! in NetCDF files dyn_hist*ave.nc
26
27END MODULE
Note: See TracBrowser for help on using the repository browser.