#!/bin/bash # This is a small script wrapping around a pure CNRM-CM parameter file # Note : this file MUST be named according to the pattern : param_EXPID # where EXPID is the identifier for the experiment # The scripts actually "installs" (or setup) an experiment, by feeding # the setup script INSTALLER (named below) with the parameter file content # Launching the experiment should therafter be done by "relan EXPID", INSTALLER=~mrgu556/public/nemo/instexp_nemo.2 EXPID=`basename $0 | sed -e 's/param_//g'` cat > $FTDIR/param_${EXPID} <<'EOF' # =================================================================== # A parameter file for defining a CNRM-CM experiment # =================================================================== # Version 5.0 July 2010 # Please refer to http://intra.cnrm.meteo.fr/aster//spip.php?article86 # for further explanations # Syntax is according to your $SHELL # Sections are : # DESCRIBING THE EXPERIMENT AND WHERE TO STORE IT # PERIOD TO PROCESS, AND JOBS GRANULARITY # JOBS CHARACTERISTICS # OUTPUT FILES : DIAGNOSTICS, RESTART, LISITINGS # NAMELISTS USED. # RESTART FILES. # FORCINGS # FOR ADVANCED USE # The environment variable EXPID is a reserved word. # =================================================================== # DESCRIBING THE EXPERIMENT AND WHERE TO STORE IT # =================================================================== # The experiment label EXPID provided as argument to the experiment # installation script must agree with the name of the current file # according to the pattern : "param_$EXPID" # The next string will be used to document diagnostic fields TITRE="REANALYSE, forcages corriges, NUDGEE." # =================================================================== # PERIOD TO PROCESS, AND JOBS GRANULARITY # =================================================================== # The period will be processed in multiple jobs. Each job will process # a number of months. The first month of the first job may begin at any # date in the month, provided there is a valid ocean initial state for # that date (either climatology or a restart).Later months will be entire. # Initial and last date of the run INIDATE=19900101 ; ENDDATE=19910630 # Start time of the run INITIME=0 # How many months should we process in each job NMONTH=12 # =================================================================== # JOBS CHARACTERISTICS # =================================================================== # These characteristics apply to each of the re-launched jobs. They may # be changed during the experiment in file $RELDIR/$EXP_his # =================================================================== # Elapsed time and memory usage on the frontal computer ELAPSFRONT=03:00:00 ; MEMFRONT=8gb # Elapsed time and memory usage on the number crunching computer ELAPS=08:00:00 ; MEM=60gb # NFS queue on the number crunching computer (can be "test", or "vector") QUEUE=vector # How many nodes and processors per node are used ? NN=1 ; NNP=7 # Number of processors dedicated to Arpege and to the Ocean model NPROC_OCE=6 # E-mail to send error messages RUNMAIL=matthieu.chevallier@meteo.fr # =================================================================== # OUTPUT FILES: DIAGNOSTICS, RESTART, LISITINGS # =================================================================== # Listings are saved in the "relance" directory # Quoting the models which listing will be saved, by a key-letter or keyword: # O (ocean) I (ice) all (les 2) SAVE_LISTING=I # Diagnostics and restarts are saved on the archive machine according # (by default) to the standard CNRM-CM file organization . See section # "advanced use" and variables $(modele)[RES|OUT]ARCH for changing it. # To save restarts every 6h (for nudging or Aladin) put 'all' # Otherwise put the period of saving for restart: # if 1 ---> save restarts every month # if 12 ---> save restarts every year # Anyway, if the processed dates interval is less than this period, # you will get a restart corresponding to the day after the last # processed day. SAVE_RESTART_PER=1 # =================================================================== # NAMELISTS USED. # =================================================================== # Namelist files can be on any rcp-reachable remote machine or cougar. # If you want to share such a parameter file and the files it uses, # remember to use either absolute path or the form "~account/..." MACH_NAMELIST=tori OCENAMREF=~mrgu559/opa/opa9/NEMO3.3/namelists/namelist_nemo3.3_glt_ERAIcNUD ICENAMREF=~mrgu559/opa/opa9/NEMO3.3/namelists/gltpar.5.31_NEMO1.C8 IOXNAMREF=~mrgu559/opa/opa9/NEMO3.3/namelists/iodef_ar5_m_dmp.xml IOSNAMREF=~mrgu559/opa/opa9/NEMO3.3/namelists/namios_ar5.1.frc # =================================================================== # RESTART FILES. # =================================================================== # Input restart files can be on any rcp-reachable remote machine or cougar. # Default is cougar MACH_RESTART=cougar EXPREF=SPEK2 ; DATREF=19000101 hm=/home/c/cgie/cgie002/SP-AR5/$EXPREF/ #If intended Ocean initial state is the climatology, LOCEREST should be set to 0 LOCEREST=1 # Otherwise do not forget to quote an ocean restart file, e.g. OCEREST=/cnrm1_a_mrgu/mrgu/mrgu559/FNEMO/OCGT12/oce/restart/OCGT12.rst.oce.P19900101.nc ICEREST=/cnrm1_a_mrgu/mrgu/mrgu559/FNEMO/OCGT12/oce/restart/OCGT12.rst.ice.P19900101 # =================================================================== # FOR ADVANCED USE # =================================================================== # Valid on yuki as of 14/9/09 : # Where to find shell script tools TOOL=~mrgu548/public/toolbox/v3.2 # Script implementing the coupled model script=~mrgu556/public/nemo/script_nemo.3 # Models binaries, their data and related tools OCEEXE=~mrgu559/opa/opa9/NEMO3.3/bin/nemo3.3_o1.5.31mp.v12.6P.FRC ; DATA_OCE=~mrgu559/opa/opa9/NEMO3.3/data2 # An I/O server for Nemo should be quoted when using mulit-proc Nemo, for assembling Nemo procs outputs # Otherwise, you'd better comment out next line to avoid an additionnal process IOSEXE=~mrgu559/opa/opa9/NEMO3.3/bin/ioserverFRC # Temporary location to store output data. STORE_LOC=$FTDIR # The experiment can belong to a group (corresponding parent directories # on archive machine and front-end will be automatically created; See section # "Advanced use" for archive location and relance location details). # Put a trailing "/" GROUP=FNEMO/ # Archive directories on cougar used to save diagnostics and # restarts. Next lines follow the CNRM-CM5 standard file organization # for CMIP5 outputs # The experiment can belong to a group (corresponding parent # directories will be automatically created) EXPARCHDIR=${GROUP}$EXPID # Will hold a copy of the current file OCEARCH=$EXPARCHDIR/oce; OCERESARCH=$OCEARCH/restart ; OCEOUTARCH=$OCEARCH/output ICEARCH=$EXPARCHDIR/oce; ICERESARCH=$ICEARCH/restart ; ICEOUTARCH=$ICEARCH/output # Directory for automatic relance (and hence job outputs). This default # value is fine for most uses RELDIR=$HOME/relances/$EXPARCHDIR # Forcages atmos # Forcing Archivage directory FARCH=/home/m/mrgu/mrgu559/FORCAGES/ERAI # Names of forcing files FORU10GEN=${FARCH}/BULKU10M_ERAI_YYYY.nc FORV10GEN=${FARCH}/BULKV10M_ERAI_YYYY.nc FORQ2MGEN=${FARCH}/BULKHUMI_ERAI_YYYY.nc FORT2MGEN=${FARCH}/BULKTAIR_ERAI_YYYY.nc FORPCPGEN=${FARCH}/FLUXPRE_ERAI_YYYY.nc FORSNWGEN=${FARCH}/SF_ERAI_YYYY.nc FORLWRGEN=${FARCH}/FLUXSTRD_ERAI_YYYY.nc FORSWRGEN=${FARCH}/FLUXSSRD_ERAI_YYYY.nc FORSLPGEN=${FARCH}/PRES_ERAI_YYYY.nc FORCSWGEN=${FARCH}/COEFF_FLCOSSRD_POG_YYYY.nc FORCLWGEN=${FARCH}/COEFF_FLCOSTRD_POG_YYYY.nc # How do they evolve YEAR_U10=SCEN_1990_2009 YEAR_V10=SCEN_1990_2009 YEAR_Q2M=SCEN_1990_2009 YEAR_T2M=SCEN_1990_2009 YEAR_PCP=SCEC_1990_2009 YEAR_SNW=SCEC_1990_2009 YEAR_LWR=SCEC_1990_2009 YEAR_SWR=SCEC_1990_2009 YEAR_SLP=SCEN_1990_2009 YEAR_CLW=SCEC_1950_1950 YEAR_CSW=SCEC_1950_1950 EOF (cd $FTDIR ; $INSTALLER $EXPID ; rm param_$EXPID)