New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 5929 for branches/2015/dev_r5092_CNRS18_TRUST/NEMOGCM/TRUST/config/arch_template.cfg – NEMO

Ignore:
Timestamp:
2015-11-26T16:55:09+01:00 (8 years ago)
Author:
nicolasmartin
Message:

dev_r5092_CNRS18_TRUST Last commits before merging to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5092_CNRS18_TRUST/NEMOGCM/TRUST/config/arch_template.cfg

    r5799 r5929  
    22##--------------------------------------------------- 
    33 
    4 ## Copy to root (./config) and rename it by keeping '.cfg' extension, then fill in according to your (super)computer 
    5 ## Rules for completion: 
    6    ## Undefined variables (=)   are mandatory 
    7    ## Void         " "    (='') " " optional 
    8 ## Look into other  configuration file for examples 
    9 ## It will be called by its name without the extension 
     4## Copy to root, rename it and then fill in according to your (super)computer environment 
     5## Rules for completion: undefined variables (=) are mandatory & void variables (='') are optional 
     6## Look into other configuration file for examples 
    107 
    118 
    129## Default settings 
    1310##--------------------------------------------------- 
     11# (Super)Computer environment (${TRUS_XIOS} is already defined in the user configuration file) 
     12TRUS_ENVI=${TRUS_XIOS}/arch/arch-${TRUS_HPCC} 
     13## If `module` is available, ${TRUS_ENVI}.env will be sourced 
     14## If not (scheduled jobs), it will be ${TRUS_ENVI}.path or finally ${TRUS_ENVI} 
    1415 
    15 ## (Super)Computer environment (can be void if $PATH is already setted) 
    16    ## If `module` command is available, arch-${TRUS_HPCC}.env will be sourced. 
    17    ## If not (scheduled jobs by `cron`/`at` commands), it will be arch-${TRUS_HPCC}.path or any file given 
    18 TRUS_ENVI=${TRUS_XIOS}/arch/arch-${TRUS_HPCC}     # ${TRUS_XIOS} is defined from user configuration file 
    19  
    20 ## Number of compiling processes 
    21 [ -z "${TRUS_NPRO}" ] && TRUS_NPRO=1 
    22  
    23 ## Command to compare 2 netCDF restart files in argument (think to load software in $PATH by any way) 
     16## Comparison command with restart files as argument (think to append $PATH by any way) 
    2417TRUS_CDOD='cdo diffn' 
    2518 
    26  
    27 ## Job commands 
    28 ##--------------------------------------------------- 
    29  
    30 ## Use with `eval ${JOB_....}` because they will certainly need to have job ID as argument ("\${JOB_ID}") 
    31 ## It will be taken on the fly from standard output returned at the submission of the job 
    32  
    33 TRUS_JSUB=   ## Submit a job and get his ID in return (assigned to ${JOB_ID}). Use absolute path, 
    34                  ## ./batch folder has been created to contain your submission script but it won't be copied into ${TRUS_TEST} 
    35              ## ex: `llsubmit ${TRUS_DIRE}/batch/${TRUS_HPCC}.sh | grep -oe '\<[0-9]*\>'` 
    36 TRUS_JSTA=      ## Test state of the submitted job (true -> pending/running or false -> completed/crashed) 
    37                     ## ex: "llq | grep \${JOB_ID}" 
    38 TRUS_JKIL=      ## Kill the submitted job 
    39                     ## ex: "llcancel   \${JOB_ID}" 
    40  
    41 ## Computational performances of finished job 
    42 TRUS_JTIM=''    ## Get CPU elapsed time 
    43                     ## ex: `grep IdrisMemMPI NEMO_CI_\${JOB_ID} | cut -d, -f1 | awk '{print \$(NF-1),\$NF}'` 
    44 TRUS_JPME=''       ## Get max physical memory 
    45                     ## ex: `grep IdrisMemMPI NEMO_CI_\${JOB_ID} | cut -d, -f3 | awk '{print \$3     ,\$4 }'` 
    46 TRUS_JVME=''       ## Get " " virtual    ""   
    47  
    48 ## Get job informations to fill in a logfile during computation 
    49 TRUS_JINF=''       ## ex: "llq -x \${JOB_ID}" 
     19[ -z "${TRUS_NPRO}" ] && TRUS_NPRO=     ## Number of compiling processes 
     20[ -z "${TRUS_TOUT}" ] && TRUS_TOUT=     ## Timeout for computation (s) 
    5021 
    5122 
    52 ## Available softwares/librairies 
     23## (Super)computer environment 
    5324##--------------------------------------------------- 
     25## Job commands will almost always be used with `eval ${TRUS_JXXX}` because 
     26## they will certainly need job ID number as argument for working 
     27TRUS_JSPT=       ## Submission script contained ./batch folder, will be copied to testing folder 
     28TRUS_JSUB=   ## Submit a job and get his ID on the fly (assigned to ${TRUS_JIDN}) 
     29            ## ex: `llsubmit ${TRUS_JSPT} | grep -oe '\<[0-9]*\>'` 
     30TRUS_JSTA=      ## Test state of the submitted job (true -> pending/running or false -> completed/crashed) 
     31                   ## ex: "llq | grep \${TRUS_JIDN}" 
     32TRUS_JKIL=      ## Kill the submitted job 
     33                   ## ex: "llcancel   \${TRUS_JIDN}" 
    5434 
    55 ## Fortran compiler version (use with `${TRUS_CMPF} --version`) 
    56 TRUS_CMPF=''     ## ex: 'ifort'|'gfortran'|'pgfortran'|... 
     35## Computational performances of job (respectively elapsed time, max physical & virtual memory) 
     36TRUS_JTIM=''       ## ex: "grep IdrisMemMPI NEMO_CI_\${TRUS_JIDN} | cut -d, -f1 | awk '{print \$(NF-1),\$NF}" 
     37TRUS_JPME=''       ## ex: "grep IdrisMemMPI NEMO_CI_\${TRUS_JIDN} | cut -d, -f3 | awk '{print \$3     ,\$4 }" 
     38TRUS_JVME=''       ## ex: "grep IdrisMemMPI NEMO_CI_\${TRUS_JIDN} | cut -d, -f2 | awk '{print \$3     ,\$4 }" 
    5739 
    58 ## Software releases (string pattern to match just before the number in $PATH): 
    59 TRUS_CDOR=''       ## CDO (Climate Data Operators) 
    60                       ## ex: 'cdo'|'nco'|... 
    61 TRUS_MPIR=''       ## MPI    libraries             
    62                       ## ex: 'openmpi'|'mpich'|... 
    63 TRUS_CDFR=''    ## NetCDF    " "                
    64                       ## ex: 'netcdf'|'netcdf-parallel'|... 
     40TRUS_JINF=''       ## Get job informations to fill in a logfile during computation 
     41                   ## ex: "llq -x \${TRUS_JIDN}" 
    6542 
     43## Compiler (use with `${TRUS_CMPV} --version`) 
     44TRUS_CMPV=''       ## ex: 'ifort'|'gfortran'|'pgfortran'|... 
    6645 
    67 ## Personal settings 
    68 ##--------------------------------------------------- 
    69  
    70 ## Timeout for computation (s) 
    71 [ -z "${TRUS_TOUT}" ] && TRUS_TOUT= 
     46## Software/libraries (string pattern to match just before the release number in $PATH) 
     47## Respectively CDO (Climate Data Operators) / MPI libraries / NetCDF libraries 
     48TRUS_CDOR=''       ## ex: 'cdo/'|'netcdf-utils-' 
     49TRUS_MPIR=''       ## ex: 'intel/impi/'|'bullxmpi/' 
     50TRUS_CDFR=''       ## ex: 'netcdf/'|'netcdf-' 
Note: See TracChangeset for help on using the changeset viewer.