Changes between Initial Version and Version 1 of FpInstallNew


Ignore:
Timestamp:
Jul 24, 2019, 4:54:49 PM (15 months ago)
Author:
pesei
Comment:

First draft

Legend:

Unmodified
Added
Removed
Modified
  • FpInstallNew

    v1 v1  
     1== FLEXPART installation guide ==
     2
     3We know that some people run FLEXPART on MacOS, and it may even be possible to run it under Windows, but usually  it is used under GNU/Linux nowdays.
     4
     5=== 1. Install dependencies ===
     6
     7If possible, install the required libraries as packages of your distribution. This will often save you a lot of hassles. On Debian, there is even a package for FLEXPART. Currently, all [https://packages.debian.org/search?keywords=flexpart Debian FLEXPART package] contain version 9.0.2. However, you need to be able to compile the code yourself, so the run-time dependencies installed by this package will not suffice. You need the following dependencies to be fulfilled:
     8
     9 - `gfortran`
     10     - or another Fortran compiler - however, then you need to (hand-)compile the libs with exactly the same compiler!
     11 - GNU `make` (will be installed on
     12{{{
     13
     14}}}
     15 most systems already)
     16 - `grib_api` lib or its successor, `eccodes`
     17 - the `jasper` lib (which is needed to use grib_api and eccodes
     18 - optionally for Versions >= 9.2: `netCDF` Fortran libraries if you want to use the netCDF output feature
     19 - optionally for Versions >= 10: `openmpi` library if you want to build parallel code
     20
     21If your distributions offers so-called developer packages for these, you need to install them (they contain the Fortran90 module files which are needed for compilation). They usually pull in the standard packages as well. Thus, on a Debian or Debian-derived system, the following packages should be installed:
     22
     23{{{
     24gfortran make libgrib-api-dev libjasper-dev libnetcdf-dev libopenmpi-dev
     25}}}
     26
     27=== 2. Review and adapt some parameters ===
     28Go through `par_mod.f90` and change the parameters if necessary. Typically, this includes the dimensions of the input meteorological data.
     29
     30=== 3. Adapt makefile ===
     31
     32The FLEXPART makefile comes with makefiles. They are inside the source directory. Usually you will need to make some adaptations to your local site.
     33
     34=== 4. Compile and test ===
     35
     36Compile the code with the command
     37
     38{{{
     39make -f makefile
     40}}}
     41where `makefile` is the makefile which you want to use.
     42
     43As a first test, you can just start the executable. It should greet you and then stop with a message about missing pathnames (here is an  example with version 8.2.3):
     44
     45{{{
     46 Welcome to FLEXPART Version 8.2.3
     47 FLEXPART is free software released under the GNU General Public License.
     48  #### TRAJECTORY MODEL ERROR! FILE "pathnames"####
     49  #### CANNOT BE OPENED IN THE CURRENT WORKING ####
     50  #### DIRECTORY.                              ####
     51}}}
     52 
     53=== 5. Prepare and test real run ===