| 6 | |
| 7 | |
| 8 | = Hints for installing Flexpart v8.2 = |
| 9 | (should work for all Versions of Flexpart) |
| 10 | |
| 11 | a step-by-step guidance for installing flexpart v8.2 at your local unix machine. |
| 12 | Please consider to consult Flexpart v8.2 documentation |
| 13 | |
| 14 | 1. Download Grib-API und Jasper as described in the flexpart documentation |
| 15 | |
| 16 | 2. Install Jasper library |
| 17 | {{{ |
| 18 | mkdir /%HOME%/lib/ |
| 19 | cp %JASPER%.zip /%HOME%/lib |
| 20 | cd %HOME%/lib |
| 21 | unzip %JASPER%.zip |
| 22 | cd %JASPER% |
| 23 | ./configure --prefix=/%HOME%/lib/%JASPER% |
| 24 | make |
| 25 | make check |
| 26 | make install |
| 27 | }}} |
| 28 | 3. Install Grib-API library |
| 29 | * mkdir /%HOME%/lib/src/ |
| 30 | * cp %GRIB%.tar.gz /%HOME%/lib/ |
| 31 | * cp %GRIB%.tar.gz /%HOME%/lib/src/ |
| 32 | * cd /%HOME%/lib/src/ |
| 33 | * tar -xvf %GRIB%.tar.gz |
| 34 | * ./configure --prefix=/%HOME%/lib/%GRIB% --with-jasper=/%HOME%/lib/%JASPER% |
| 35 | * make |
| 36 | * make check |
| 37 | * make install |
| 38 | |
| 39 | 4. Add the following lines to the bash.rc-file of your home directory: |
| 40 | |
| 41 | * edit %HOME%/.bashrc (e.g. vi or emacs) |
| 42 | * export GRIB_API_BIN=“/%HOME/lib/%GRIB%/bin“ |
| 43 | * export GRIB_API_LIB=“/%HOME/lib/%GRIB%/lib“ |
| 44 | * export GRIB_API_INCLUDE=“/%HOME/lib/%GRIB%/include“ |
| 45 | * export PATH=$GRIB_API_BIN:$PATH |
| 46 | |
| 47 | 5. Testing if Grib-API installation has been successful: read out Grib-file: |
| 48 | * grib_ls %FILENAME% |
| 49 | |
| 50 | 6. Download Flexpart (%FLEXPART%.tar.gz) as described in the flexpart documentation |
| 51 | |
| 52 | 7. Unzip Flexpart-Archive, modify makefile und compile |
| 53 | |
| 54 | * tar -xvf %FLEXPART%.tar.gz |
| 55 | * cp makefile.%(version)% makefile |
| 56 | * edit makefile (e.g. vi or emacs) |
| 57 | * Change lines to: |
| 58 | * INCPATH=/lib/%GRIB%/include |
| 59 | * LIBPATH1=/lib/%GRIB%/lib |
| 60 | * LIBPATH2=/lib/%JASPER%/lib |
| 61 | Adjust file includepar in the Flexpart-directory to your local computing capacities (if the values of the following parameters are choosen too high, compiling via make will fail) |
| 62 | * parameter(nxmax=721,nymax=361,nuvzmax=92,nwzmax=92,nzmax=92) (input: ECMWF windfields with resolution 0.5°) |
| 63 | * parameter(nxmax=361,nymax=181,nuvzmax=92,nwzmax=92,nzmax=92) (input: ECMWF windfields with resolution 1.0°) |
| 64 | * parameter(maxpart=22000000) (Change to: 1000000 (or 500000 / according to your computer specifications)) |
| 65 | * parameter(maxspec=60) (Number of species. Change to 1 oder 2 (according to your computer specifications and your scientific problem))) |
| 66 | * make clean |
| 67 | * make |
| 68 | |
| 69 | Minimum requirements to achieve results in a reasonable time: 4GB RAM |