Différences entre versions de « Namelist cfg polr »
(Page créée avec « == Description du fichier namelist_cfg_polr == Le fichier '''namelist_cfg_polr''' sert de gabarit à la création du fichier de ''namelist'' '''namelist_cfg''' utilisé p... ») |
|||
| (2 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 3 : | Ligne 3 : | ||
Le fichier '''namelist_cfg_polr''' sert de gabarit à la création du | Le fichier '''namelist_cfg_polr''' sert de gabarit à la création du | ||
fichier de ''namelist'' '''namelist_cfg''' utilisé par le modèle '''NEMO'''. | fichier de ''namelist'' '''namelist_cfg''' utilisé par le modèle '''NEMO'''. | ||
| + | |||
| + | |||
| + | Avant d'utiliser '''nemo_restart''', il faut initialiser l'environnement dans son répertoire de travail en faisant un appel au script [[init_nemo_restart|init_nemo_restart.sh]] . | ||
| + | |||
| + | |||
Le gabarit contient un ensemble de ''jetons'' de substitution (tokens) à | Le gabarit contient un ensemble de ''jetons'' de substitution (tokens) à | ||
| Ligne 41 : | Ligne 46 : | ||
|} | |} | ||
| − | + | '''Note:''' Seuls les ''jetons'' '''NIT000''', '''NITEND''', '''BREST''', '''NNISTATE''' et '''NNSTOCK''' sont obligatoires. Toutes les autres valeur peuvent être codée en dur dans le gabarit. | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | === Exemple de fichier namelist_cfg_polr === | |
| − | !----------------------------------------------------------------------- | + | |
| − | &nam_tide ! tide parameters (#ifdef key_tide) | + | ...Lignes escamotées |
| − | !----------------------------------------------------------------------- | + | !!>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> |
| − | + | !! NEMO/OPA : Configuration namelist used to overwrite defaults values defined in namelist_ref | |
| − | + | !!>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
| − | + | !----------------------------------------------------------------------- | |
| − | + | &namrun ! parameters of the run | |
| − | + | !----------------------------------------------------------------------- | |
| − | + | nn_no = 0 ! job number (no more used...) | |
| − | + | cn_exp = "GSL5KM" ! experience name | |
| − | + | nn_it000 = NIT000 ! first time step | |
| + | nn_itend = NITEND ! last time step (std 1 day = 144) | ||
| + | nn_date0 = NDATEDEB ! date at nit_0000 (format yyyymmdd) used if ln_rstart=F or (ln_rstart=T and nn_rstctl=0 or 1) | ||
| + | nn_leapy = 1 ! Leap year calendar (1) or not (0) | ||
| + | ln_rstart = BREST ! start from rest (F) or from a restart file (T) | ||
| + | nn_euler = 1 ! = 0 : start with forward time step if ln_rstart=.true. | ||
| + | nn_rstctl = 2 ! restart control ==> activated only if ln_rstart=T | ||
| + | ! = 0 nn_date0 read in namelist ; nn_it000 : read in namelist | ||
| + | ! = 1 nn_date0 read in namelist ; nn_it000 : check consistancy between namelist and restart | ||
| + | ! = 2 nn_date0 read in restart ; nn_it000 : check consistancy between namelist and restart | ||
| + | cn_ocerst_in = "restart" ! suffix of ocean restart name (input) | ||
| + | cn_ocerst_indir = "." ! directory from which to read input ocean restarts | ||
| + | cn_ocerst_out = "restart" ! suffix of ocean restart name (input) | ||
| + | cn_ocerst_outdir = "./" ! directory in which to write output ocean restarts | ||
| + | ln_rst_list = .false. ! output restarts at list of times using nn_stocklist (T) or at set frequency with nn_stock (F) | ||
| + | nn_stock = NNSTOCK ! frequency of creation of a restart file (modulo referenced to 1) | ||
| + | nn_stocklist = 0,0,0,0,0,0,0,0,0,0 ! List of timesteps when a restart file is to be written | ||
| + | nn_write = 12 ! frequency of write in the output file (modulo referenced to nit000) | ||
| + | nn_istate = NNISTATE ! output the initial state (1) or not (0) | ||
| + | ln_dimgnnn = .false. ! DIMG file format: 1 file for all processors (F) or by processor (T) | ||
| + | ln_mskland = .false. | ||
| + | |||
| + | ...lignes escamotées | ||
| + | |||
| + | !----------------------------------------------------------------------- | ||
| + | &namdom ! space and time domain (bathymetry, mesh, timestep) | ||
| + | !----------------------------------------------------------------------- | ||
| + | rn_rdt = PASDETEMPS. ! time step for the dynamics (and tracer if nn_acc=0) | ||
| + | nn_msh = 1 ! create (=1) a mesh file or not (=0) | ||
| + | rn_e3zps_min = 5. ! partial step thickness is set larger than the minimum of | ||
| + | rn_e3zps_rat = 0.1 ! rn_e3zps_min and rn_e3zps_rat*e3t, with 0<rn_e3zps_rat<1 | ||
| + | |||
| + | ...lignes escamotées | ||
| + | |||
| + | !----------------------------------------------------------------------- | ||
| + | &nam_tide ! tide parameters (#ifdef key_tide) | ||
| + | !----------------------------------------------------------------------- | ||
| + | ln_tide_pot = .false. ! use tidal potential forcing | ||
| + | ln_tide_load = .false. ! use self attraction and loading (SAL) | ||
| + | filetide_load = '' ! filename for load potential | ||
| + | ln_tide_load_conj= .false. ! conjugate the imaginary part | ||
| + | ln_tide_ramp = RAMP ! | ||
| + | rdttideramp = 1. ! days | ||
| + | clname(1) = 'M2' ! name of constituent | ||
| + | clname(2) = 'S2' ! name of constituent | ||
| + | |||
| + | ...lignes escamotées | ||
| − | |||
| − | + | [[Category:NEMO]] | |
| + | [[Category:RESTART]] | ||
Version actuelle datée du 17 mars 2020 à 16:30
Description du fichier namelist_cfg_polr
Le fichier namelist_cfg_polr sert de gabarit à la création du fichier de namelist namelist_cfg utilisé par le modèle NEMO.
Avant d'utiliser nemo_restart, il faut initialiser l'environnement dans son répertoire de travail en faisant un appel au script init_nemo_restart.sh .
Le gabarit contient un ensemble de jetons de substitution (tokens) à partir desquels le script lance_memo_run.sh fournit des paramètres d'exécution pour la prochaine itération du modèle.
Le contenu du gabarit ne sert qu'à créer le fichier namelist_cfg du modèle. L'utilisateur est donc libre d'utiliser la méthode de son choix pour passer des paramètres au modèle. Plusieurs scénarios sont possibles:
- On peut utiliser un fichier namelist_ref passablement complet et utiliser namelist_cfg_polr pour créer un fichier namelist_cfg minimal ;
- On peut supprimer namelist_ref et mettre tous nos paramètres dans namelist_cfg_polr afin d'obtenir un namelist_cfg complet ;
- On peut adopter une solution hybride.
Liste des _jetons_ de conversion de namelist_cfg_polr
Le tableau suivant présente la liste des jetons de substitution du fichier namelist_cfg_polr et où ils peuvent être utilisés.
| JETON | DESCRIPTION | VARIABLES NEMO INITIALISÉES |
|---|---|---|
| NIT000 | Pas de temps de départ de l'itération | nn_it000 |
| NITEND | Pas de temps final de l'itération | nn_itend |
| NDATEDEB | Date de départ de la simulation | nn_date0 |
| BREST | Booléen indiquant si on est en mode restart ou non | ln_rstart |
| NNISTATE | Booléen indiquant de sauvegarder les fichiers initiaux | nn_istate |
| NNSTOCK | Fréquence de création des restarts (calcul automatique) | nn_stock |
| PASDETEMPS | Pas de temps en secondes | rn_rdt |
| RAMP | Tide ramp | kn_tide_ramp |
Note: Seuls les jetons NIT000, NITEND, BREST, NNISTATE et NNSTOCK sont obligatoires. Toutes les autres valeur peuvent être codée en dur dans le gabarit.
Exemple de fichier namelist_cfg_polr
...Lignes escamotées
!!>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
!! NEMO/OPA : Configuration namelist used to overwrite defaults values defined in namelist_ref
!!>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
!-----------------------------------------------------------------------
&namrun ! parameters of the run
!-----------------------------------------------------------------------
nn_no = 0 ! job number (no more used...)
cn_exp = "GSL5KM" ! experience name
nn_it000 = NIT000 ! first time step
nn_itend = NITEND ! last time step (std 1 day = 144)
nn_date0 = NDATEDEB ! date at nit_0000 (format yyyymmdd) used if ln_rstart=F or (ln_rstart=T and nn_rstctl=0 or 1)
nn_leapy = 1 ! Leap year calendar (1) or not (0)
ln_rstart = BREST ! start from rest (F) or from a restart file (T)
nn_euler = 1 ! = 0 : start with forward time step if ln_rstart=.true.
nn_rstctl = 2 ! restart control ==> activated only if ln_rstart=T
! = 0 nn_date0 read in namelist ; nn_it000 : read in namelist
! = 1 nn_date0 read in namelist ; nn_it000 : check consistancy between namelist and restart
! = 2 nn_date0 read in restart ; nn_it000 : check consistancy between namelist and restart
cn_ocerst_in = "restart" ! suffix of ocean restart name (input)
cn_ocerst_indir = "." ! directory from which to read input ocean restarts
cn_ocerst_out = "restart" ! suffix of ocean restart name (input)
cn_ocerst_outdir = "./" ! directory in which to write output ocean restarts
ln_rst_list = .false. ! output restarts at list of times using nn_stocklist (T) or at set frequency with nn_stock (F)
nn_stock = NNSTOCK ! frequency of creation of a restart file (modulo referenced to 1)
nn_stocklist = 0,0,0,0,0,0,0,0,0,0 ! List of timesteps when a restart file is to be written
nn_write = 12 ! frequency of write in the output file (modulo referenced to nit000)
nn_istate = NNISTATE ! output the initial state (1) or not (0)
ln_dimgnnn = .false. ! DIMG file format: 1 file for all processors (F) or by processor (T)
ln_mskland = .false.
...lignes escamotées
!-----------------------------------------------------------------------
&namdom ! space and time domain (bathymetry, mesh, timestep)
!-----------------------------------------------------------------------
rn_rdt = PASDETEMPS. ! time step for the dynamics (and tracer if nn_acc=0)
nn_msh = 1 ! create (=1) a mesh file or not (=0)
rn_e3zps_min = 5. ! partial step thickness is set larger than the minimum of
rn_e3zps_rat = 0.1 ! rn_e3zps_min and rn_e3zps_rat*e3t, with 0<rn_e3zps_rat<1
...lignes escamotées
!-----------------------------------------------------------------------
&nam_tide ! tide parameters (#ifdef key_tide)
!-----------------------------------------------------------------------
ln_tide_pot = .false. ! use tidal potential forcing
ln_tide_load = .false. ! use self attraction and loading (SAL)
filetide_load = ! filename for load potential
ln_tide_load_conj= .false. ! conjugate the imaginary part
ln_tide_ramp = RAMP !
rdttideramp = 1. ! days
clname(1) = 'M2' ! name of constituent
clname(2) = 'S2' ! name of constituent
...lignes escamotées