Changeset a9d33f6 in flex_extract.git for For_developers/Sphinx/source/Documentation


Ignore:
Timestamp:
Jun 1, 2020, 7:58:31 PM (4 years ago)
Author:
Petra Seibert <petra.seibert [at) univie.ac.at>
Branches:
master, ctbto, dev
Children:
5bee29a
Parents:
5920b7f
Message:

changes related to makefile, structure and names of top-level sections

Location:
For_developers/Sphinx/source/Documentation
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • For_developers/Sphinx/source/Documentation/Input/fortran_makefile.rst

    r5920b7f ra9d33f6  
    1616| Files to be used as they are!
    1717   
    18     | **makefile_ecgate**: For  use on ECMWF's server **ecgate**.
    19     | **makefile_cray**:   For  use on ECMWF's server **cca/ccb**.
     18    | **makefile_ecgate**: For  use on the ECMWF server **ecgate**.
     19    | **makefile_cray**:   For  use on the ECMWF servers **cca/ccb**.
    2020   
    2121| **Local mode**
     
    2424    | **makefile_fast**:  For use with the gfortran compiler and optimisation mode.
    2525    | **makefile_debug**: For use with the gfortran compiler and debugging mode. Primarily for developers.
     26    | **makefile_local_gfortran**: Linked to makefile_fast. Default value.
     27
     28They can be found at ``flex_extract_vX.X/Source/Fortran/``, where ``vX.X`` should be substituted by the current flex_extract version number.
     29
     30.. caution::   
     31   It is necessary to adapt **ECCODES_INCLUDE_DIR** and **ECCODES_LIB** in these
     32   ``makefiles`` if other than standard paths are used.
     33
     34Thus, go to the ``Fortran`` source directory and open the ``makefile`` of your
     35choice, and check / modify with an editor of your choice:
     36
     37.. code-block:: bash
     38
     39   cd flex_extract_vX.X/Source/Fortran
     40   nedit makefile_fast
     41 
     42Set the paths to the ``eccodes`` library on your local machine, if necessary.
     43
     44.. caution::
     45   This can vary from system to system.
     46   It is suggested to use a command like
     47
     48   .. code-block:: bash
     49
     50      # for the ECCODES_INCLUDE_DIR path do:
     51      $ dpkg -L libeccodes-dev | grep eccodes.mod
     52      # for the ECCODES_LIB path do:
     53      $ dpkg -L libeccodes-dev | grep libeccodes.so
     54     
     55   to find out the path to the ``eccodes`` library.
     56   
     57Assign these paths to the parameters **ECCODES_INCLUDE_DIR**
     58and **ECCODES_LIB** in the makefile, and save it.
     59
     60.. code-block:: bash
     61
     62   # these are the paths on Debian Buster:
     63   ECCODES_INCLUDE_DIR=/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15/
     64   ECCODES_LIB= -L/usr/lib -leccodes_f90 -leccodes -lm 
     65   
    2666
    2767If you want to use another compiler than gfortran locally, you can still take ``makefile_fast``,
    2868and adapt everything that is compiler-specific in this file.
    29 
    30 For instructions on how to adapt the ``makefile`` (local application mode only),
    31 please see :ref:`ref-install-local`.
    3269
    3370   
  • For_developers/Sphinx/source/Documentation/Input/jobscript.rst

    r5920b7f ra9d33f6  
    139139    mailfail ${USER}
    140140    mailops ${USER}
    141     makefile Makefile.gfortran
    142141    marsclass EP
    143142    maxstep 0
  • For_developers/Sphinx/source/Documentation/Input/setup.rst

    r550435b ra9d33f6  
    174174                            Valid targets: local | ecgate | cca , the latter two
    175175                            are at ECMWF (default: None)
    176       --makefile MAKEFILE   Name of Makefile to use for compiling the Fortran
    177                             program (default: None)
     176      --makefile MAKEFILE   Name of makefile to compile the Fortran
     177                            code. (default depends on `target`: local - makefile_local_gfortran,
     178                            ecgate - makefile_ecgate, cca - makefile_cray)
    178179      --ecuid ECUID         The user id at ECMWF. (default: None)
    179180      --ecgid ECGID         The group id at ECMWF. (default: None)
  • For_developers/Sphinx/source/Documentation/disagg.rst

    rf20342a ra9d33f6  
    1717    :widths: 5,15,5,10
    1818   
    19     LSP,  "large-scale precipitation",          ":math:`m`",          "modified linear interpolation"
    20     CP,   "convective precipitation",           ":math:`m`",          "modified linear interpolation"
    21     SSHF, "surface sensible heat flux",         ":math:`J m^{-2}`",   "bicubic interpolation"
    22     EWSS, "eastward turbulent surface stress",  ":math:`N m^{-2} s`", "bicubic interpolation"
    23     NSSS, "northward turbulent surface stress", ":math:`N m^{-2} s`", "bicubic interpolation"
    24     SSR,  "surface net solar radiation",        ":math:`J m^{-2}`",   "bicubic interpolation"
     19    LSP,  "large-scale precipitation",          "m",          "modified linear interpolation"
     20    CP,   "convective precipitation",           "m",          "modified linear interpolation"
     21    SSHF, "surface sensible heat flux",         "J m:math:`^{-2}`",   "bicubic interpolation"
     22    EWSS, "eastward turbulent surface stress",  "N m:math:`^{-2}` s", "bicubic interpolation"
     23    NSSS, "northward turbulent surface stress", "N m:math:`^{-2}` s", "bicubic interpolation"
     24    SSR,  "surface net solar radiation",        "J m:math:`^{-2}`",   "bicubic interpolation"
    2525   
    2626
     
    6262
    6363
    64 Disaggregation is done for four adjacent timespans (:math:`a_0, a_1, a_2, a_3`) which generates a new, disaggregated value which is output at the central point of the four adjacent timespans.
     64Disaggregation is done for four adjacent time intervals (:math:`a_0, a_1, a_2, a_3`) which generates a new, disaggregated value which is output at the central point of the four adjacent time intervals.
    6565
    6666.. math::
    6767
    68        p_{ac} &= 0.5 * a_1\\
     68       p_{ac} &= 0.5 a_1\\
    6969            m &= a_0 + a_2 > 0.\\
    70     p_{ac}(m) &= a_1(m) * a_2(m) / (a_0(m) + a_2(m))\\
     70    p_{ac}(m) &= a_1(m) a_2(m) / (a_0(m) + a_2(m))\\
    7171       p_{bd} &= 0.5 * a_2\\
    7272            m &= a_1 + a_3 > 0.\\
    73     p_{bd}(m) &= a_1(m) * a_2(m) / (a_1(m) + a_3(m))\\
     73    p_{bd}(m) &= a_1(m) a_2(m) / (a_1(m) + a_3(m))\\
    7474
    7575
    76 This new point :math:`p` is used for linear interpolation of the complete timeseries afterwards. If one of the four original timespans has a value below 0, it is set to 0 prior to the calculation.
     76This new point :math:`p` is used for linear interpolation of the complete timeseries afterwards. If one of the four original time intervals has a value below 0, it is set to 0 prior to the calculation.
    7777   
    7878.. math::
     
    162162The accumulated values for the other variables are first divided by the number of hours and
    163163then interpolated to the exact times using a bicubic interpolation which conserves the integrals of the fluxes within each timespan.
    164 Disaggregation is done for four adjacent timespans (:math:`p_a, p_b, p_c, p_d`) which produces a new, disaggregated value that is the output at the central point of the four adjacent timespans.
     164Disaggregation is done for four adjacent time intervals (:math:`p_a, p_b, p_c, p_d`) which produces a new, disaggregated value that is the output at the central point of the four adjacent time intervals.
    165165
    166166.. math::
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG