Ignore:
Timestamp:
Jul 29, 2019, 8:23:57 AM (5 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
bc27d19
Parents:
41c9dbc
Message:

Documentation status version 0

File:
1 edited

Legend:

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

    r41c9dbc r0b00607  
    1 **********************************
    2 The Fortran Program - ``CONVERT2``
    3 **********************************
     1***********************************
     2The Fortran Makefile - ``CONVERT2``
     3***********************************
    44
    55.. _ref-convert:
    66
    7 One of ``flex_extract``'s components is a Fortran program called ``CONVERT2``.
    8 This will be compiled during the installation process to get an executable. ``flex_extract``
    9 has a couple of makefiles prepared which are listed in the following.
     7``Flex_extract``'s Fortran program will be compiled during
     8the installation process to get the executable named ``CONVERT2``.
     9
     10``flex_extract`` has a couple of ``Makefiles`` prepared which can be found in the directory
     11``flex_extract_vX.X/source/fortran``, where ``vX.X`` should be substituted with the current version number.
     12A list of these ``Makefiles`` are shown below:
    1013
    1114
     
    2831    | For the use with ifort compiler.
    2932
    30 They can be found in the path ``flex_extract_vX.X/source/fortran``, where
    31 ``vX.X`` should be substituted with the current version number.
    3233
    33 So starting from the root directory of ``flex_extract``,
    34 go to the ``Fortran`` source directory and open the ``Makefile`` of your
    35 choice to modify with an editor of your choice. We use the ``nedit`` in this case.
    36 So far, we tested ``flex_extract`` with a ``gfortran`` and an ``ifort`` compiler. 
    37 
    38 .. code-block:: bash
    39 
    40    $ cd flex_extract_vX.X/source/fortran
    41    $ nedit Makefile.local.gfortran
     34For instructions on how to adapt the ``Makefiles`` for the local application mode
     35please see :ref:`ref-install-local`.
    4236
    4337
    44 Edit the pathes to the ``eccodes`` library on your local machine.
    45 
    46 .. caution::
    47    This can vary from system to system.
    48    It is suggested to use a command like
    49 
    50    .. code-block:: bash
    51 
    52       # for the ECCODES_INCLUDE_DIR path do:
    53       $ dpkg -L libeccodes-dev | grep eccodes.mod
    54       # for the ECCODES_LIB path do:
    55       $ dpkg -L libeccodes-dev | grep libeccodes.so
    56      
    57    to find out the path to the ``eccodes`` library.
    58    
    59 Substitute these paths in the ``Makefile`` for parameters **ECCODES_INCLUDE_DIR**
    60 and **ECCODES_LIB** and save it.
    61 
    62 .. code-block:: bash
    63 
    64    # these are the paths on a current Debian Testing system (May 2019)
    65    ECCODES_INCLUDE_DIR=/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15/
    66    ECCODES_LIB= -L/usr/lib -leccodes_f90 -leccodes -lm 
    67    
    6838   
    6939.. toctree::
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG