source:
flex_extract.git/for_developers/Sphinx/source/Documentation/Input/fortran_makefile.rst
@
41c9dbc
Last change on this file since 41c9dbc was 41c9dbc, checked in by Anne Philipp <anne.philipp@…>, 5 years ago | |
---|---|
|
|
File size: 2.1 KB |
The Fortran Program - CONVERT2
One of flex_extract's components is a Fortran program called CONVERT2. This will be compiled during the installation process to get an executable. flex_extract has a couple of makefiles prepared which are listed in the following.
Makefile.gfortranFor the use on ECMWF's server ecgate.Makefile.CRAYFor the use on ECMWF's server cca/ccb.
Makefile.local.gfortranFor the use with gfortran compiler.Makefile.local.ifortFor the use with ifort compiler.
They can be found in the path flex_extract_vX.X/source/fortran, where vX.X should be substituted with the current version number.
So starting from the root directory of flex_extract, go to the Fortran source directory and open the Makefile of your choice to modify with an editor of your choice. We use the nedit in this case. So far, we tested flex_extract with a gfortran and an ifort compiler.
$ cd flex_extract_vX.X/source/fortran $ nedit Makefile.local.gfortran
Edit the pathes to the eccodes library on your local machine.
Caution!
This can vary from system to system. It is suggested to use a command like
# for the ECCODES_INCLUDE_DIR path do: $ dpkg -L libeccodes-dev | grep eccodes.mod # for the ECCODES_LIB path do: $ dpkg -L libeccodes-dev | grep libeccodes.so
to find out the path to the eccodes library.
Substitute these paths in the Makefile for parameters ECCODES_INCLUDE_DIR and ECCODES_LIB and save it.
# these are the paths on a current Debian Testing system (May 2019) ECCODES_INCLUDE_DIR=/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15/ ECCODES_LIB= -L/usr/lib -leccodes_f90 -leccodes -lm
.. toctree:: :hidden: :maxdepth: 2