Changeset f20342a in flex_extract.git for For_developers/Sphinx/source/Documentation/Input/setup.rst
- Timestamp:
- May 27, 2020, 8:01:54 PM (4 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 550435b
- Parents:
- a14839a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
For_developers/Sphinx/source/Documentation/Input/setup.rst
rb1674ed rf20342a 1 1 ************************************** 2 The Installation Script - ``setup.sh``2 The installation script - ``setup.sh`` 3 3 ************************************** 4 4 5 6 The installation of ``flex_extract`` is done by the Shell script ``setup.sh`` which is located in the root directory of ``flex_extract``. 7 It calls the top-level Python script ``install.py`` which does all necessary operations to prepare the selected application environment. This includes: 8 9 - preparing the file ``ECMWF_ENV`` with the user credentials for member state access to ECMWF servers (in **remote** and **gateway** mode) 5 The installation of ``flex_extract`` is done by the shell script ``setup.sh`` located in the root directory of ``flex_extract``. 6 It calls the top-level Python script ``install.py`` which does all the necessary operations to prepare the application environment selected. This includes: 7 8 - preparing the file ``ECMWF_ENV`` with the user credentials for member-state access to ECMWF servers (in **remote** and **gateway** mode) 10 9 - preparation of a compilation Korn-shell script (in **remote** and **gateway** mode) 11 10 - preparation of a job template with user credentials (in **remote** and **gateway** mode) 12 - create a tar -ball of all necessary files13 - copying t ar-ball totarget location (depending on application mode and installation path)14 - submit compilation script to batch queue at ECMWF servers (in **remote** and **gateway** mode) or just untar tar-ball at target location (**local mode**)15 - compilation of the F ORTRAN90program ``calc_etadot``16 17 18 The Python installation script ``install.py`` has a couple of command line arguments which are defined in ``setup.sh`` in the section labelled with "*AVAILABLE COMMANDLINE ARGUMENTS TO SET*". The user has to adapt these parameters for his personal use. The parameters are listed and described in :ref:`ref-instparams`. The script also does some checks to guarantee necessary parameters were set.11 - create a tarball of all necessary files 12 - copying the tarball to the target location (depending on application mode and installation path) 13 - submit the compilation script to the batch queue at ECMWF servers (in **remote** and **gateway** mode) or just untar the tarball at target location (**local mode**) 14 - compilation of the Fortran program ``calc_etadot`` 15 16 17 The Python installation script ``install.py`` has several command line arguments defined in ``setup.sh``, in the section labelled "*AVAILABLE COMMANDLINE ARGUMENTS TO SET*". The user has to adapt these parameters according to his/her personal needs. The parameters are listed and described in :ref:`ref-instparams`. The script also does some checks to guarantee that the necessary parameters were set. 19 18 20 19 After the installation process, some tests can be conducted. They are described in section :ref:`ref-testinstallfe`. 21 20 22 The following diagram sketches the involved files and scriptsin the installation process:21 The following diagram sketches the files and scripts involved in the installation process: 23 22 24 23 .. _ref-install-blockdiag: … … 115 114 116 115 .. blockdiag:: 117 :caption: Diagram of data flow during the installation process. T he trapezoids are input files with the light blue area being the template files. The edge-rounded, orange boxes are the executable files which start the installation process and reads the input files. The rectangular, green boxes are the output files. The light green files are files which are only neededin the remota and gateway mode.116 :caption: Diagram of data flow during the installation process. Trapezoids are input files with the light blue area being the template files. Round-edge orange boxes are executable files which start the installation process and read the input files. Rectangular green boxes are output files. Light green files are needed only in the remota and gateway mode. 118 117 119 118 blockdiag { … … 133 132 .. _ref-instparams: 134 133 135 Installation Parameter136 ---------------------- 134 Installation parameters 135 ----------------------- 137 136 138 137 .. exceltable:: Parameter for Installation … … 155 154 ---------------------------------- 156 155 157 It is also possible to start the installation process of ``flex_extract`` directly from command line by using the ``install.py`` script instead of the wrapping Shell script ``setup.sh``. This top-level script is located in158 ``flex_extract_vX.X/Source/Python`` and is executable. With the `` help`` parameter we see again all possible159 command line parameter.156 It is also possible to start the installation process of ``flex_extract`` directly from the command line by using the ``install.py`` script instead of the wrapper shell script ``setup.sh``. This top-level script is located in 157 ``flex_extract_vX.X/Source/Python`` and is executable. With the ``--help`` parameter, 158 we see again all possible command line parameters. 160 159 161 160 .. code-block:: bash
Note: See TracChangeset
for help on using the changeset viewer.