Changeset 6931f61 in flex_extract.git for For_developers/Sphinx/Source/Documentation/Input/jobscript.rst
- Timestamp:
- Jul 8, 2020, 10:00:37 PM (4 years ago)
- Branches:
- master, ctbto, dev
- Children:
- e0005c9
- Parents:
- 8a53342
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
For_developers/Sphinx/Source/Documentation/Input/jobscript.rst
r8a53342 r6931f61 5 5 The job script is a Korn-shell script which will be created at runtime for each ``flex_extract`` execution in the application modes **remote** and **gateway**. 6 6 7 It is based on the `` job.temp`` template file stored in the ``Templates`` directory.8 This template is generated in the installation process from a ``job .template`` template file.7 It is based on the ``submitscript.template`` template file stored in the ``Templates`` directory. 8 This template is generated in the installation process from a ``jobscript.template`` template file. 9 9 10 10 ``Flex_extract`` uses the Python package `genshi <https://genshi.edgewall.org/>`_ to generate 11 11 the Korn-shell script from the template files by substituting the individual parameters. 12 These individual parameters are marked by ``$$`` in ``job .temp``.12 These individual parameters are marked by ``$$`` in ``jobscript.template``. 13 13 14 14 The job script has a number of settings for the batch system which are fixed, and differentiates between the *ecgate* and the *cca/ccb* … … 26 26 #. It sets some environment variables for the single session. 27 27 #. It creates the directory structure in the user's ``$SCRATCH`` file system. 28 #. It creates a CONTROL file on the ECMWF servers whith the parameters set before creating the ``job script.ksh``. ``Flex_extract`` has a set of parameters which are passed to the job script with their default or the user-defined values. It also sets ``CONTROL`` as an environment variable.28 #. It creates a CONTROL file on the ECMWF servers whith the parameters set before creating the ``job.ksh``. ``Flex_extract`` has a set of parameters which are passed to the job script with their default or the user-defined values. It also sets ``CONTROL`` as an environment variable. 29 29 #. ``Flex_extract`` is started from within the ``work`` directory of the new directory structure by calling the ``submit.py`` script. It sets new paths for input and output directories and the recently generated ``CONTROL`` file. 30 30 #. At the end, it checks whether the script has returned an error or not, and emails the log file to the user. … … 33 33 34 34 35 Example ``job script.ksh``35 Example ``job.ksh`` 36 36 ------------------------- 37 37 … … 68 68 *ecg*) 69 69 module unload grib_api 70 module unload eccodes71 module unload python72 70 module unload emos 73 71 module load python3 74 module load eccodes /2.12.072 module load eccodes 75 73 module load emos/455-r64 76 74 export PATH=${PATH}:${HOME}/flex_extract_v7.1/Source/Python 77 75 ;; 78 76 *cca*) 79 module unload python80 77 module switch PrgEnv-cray PrgEnv-intel 81 78 module load python3 82 module load eccodes /2.12.083 module load emos 79 module load eccodes 80 module load emos/455-r64 84 81 export SCRATCH=${TMPDIR} 85 82 export PATH=${PATH}:${HOME}/flex_extract_v7.1/Source/Python … … 107 104 date_chunk 3 108 105 debug 1 109 destination annep@genericSftp106 destination <specificname>@genericSftp 110 107 doubleelda 0 111 108 dpdeta 1 … … 128 125 grib2flexpart 0 129 126 grid 1.0/1.0 130 inputdir /raid60/nas/tmc/Anne/Interpolation/flexextract/flex_extract_v7.1/run/workspace127 inputdir <path-to-flex_extract>/flex_extract_v7.1/run/workspace 131 128 install_target None 132 129 job_chunk 1 … … 145 142 omegadiff 0 146 143 oper 0 147 outputdir /raid60/nas/tmc/Anne/Interpolation/flexextract/flex_extract_v7.1/run/workspace144 outputdir <path-to-flex_extract>/flex_extract_v7.1/run/workspace 148 145 prefix CE 149 146 public 0
Note: See TracChangeset
for help on using the changeset viewer.