Changeset 0b00607 in flex_extract.git for for_developers/Sphinx/source/Documentation/Input/fortran_makefile.rst
- Timestamp:
- Jul 29, 2019, 8:23:57 AM (5 years ago)
- Branches:
- master, ctbto, dev
- Children:
- bc27d19
- Parents:
- 41c9dbc
- 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 *********************************** 2 The Fortran Makefile - ``CONVERT2`` 3 *********************************** 4 4 5 5 .. _ref-convert: 6 6 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 8 the 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. 12 A list of these ``Makefiles`` are shown below: 10 13 11 14 … … 28 31 | For the use with ifort compiler. 29 32 30 They can be found in the path ``flex_extract_vX.X/source/fortran``, where31 ``vX.X`` should be substituted with the current version number.32 33 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 34 For instructions on how to adapt the ``Makefiles`` for the local application mode 35 please see :ref:`ref-install-local`. 42 36 43 37 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 like49 50 .. code-block:: bash51 52 # for the ECCODES_INCLUDE_DIR path do:53 $ dpkg -L libeccodes-dev | grep eccodes.mod54 # for the ECCODES_LIB path do:55 $ dpkg -L libeccodes-dev | grep libeccodes.so56 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:: bash63 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 -lm67 68 38 69 39 .. toctree::
Note: See TracChangeset
for help on using the changeset viewer.