| 2 | |
| 3 | The download and installation test procedure: |
| 4 | |
| 5 | 1) Create a base directory e.g. |
| 6 | mkdir ~/repos |
| 7 | |
| 8 | 2) Get the code using Git, type the command: |
| 9 | git clone !https://www.flexpart.eu/gitmob/flexpart -b flexpart-noresm |
| 10 | |
| 11 | Make sure Git is installed in your system https://git-scm.com/downloads. This will create a local “flexpart” directory containing the sub-directories “src” (with sources), “tests” and “options” |
| 12 | |
| 13 | 3) Get the meteorological data and two extra “.dat” files needed by FLEXPART (~650 Mb) |
| 14 | Downloading the file “flexpartnoresm.dat.tar” from: |
| 15 | https://www.flexpart.eu/downloads/53 |
| 16 | |
| 17 | 4) Decompress the data using the command: |
| 18 | tar -xf flexpartnoresm.dat.tar |
| 19 | |
| 20 | the archive contains the driving meteorological data for tests (in sub-directory “meteogrid”) and two essential input “.dat” files that FLEXPART needs in the “options” directory |
| 21 | |
| 22 | 5) be sure to move the two input “.dat files” mentioned in (4) to the options directory e.g. use command: |
| 23 | mv *.dat options |
| 24 | |
| 25 | 6) Once the structure is in place one has to create the executable. |
| 26 | |
| 27 | a) make sure the NetCDF libraries are available (http://www.unidata.ucar.edu/software/netcdf/) |
| 28 | |
| 29 | b) modify the makefile where needed to link to your local NetCDF library |
| 30 | |
| 31 | c) make the executable: make -f makefile_noresm_gfortran |
| 32 | |
| 33 | 7) Finally test that the installation works |
| 34 | |
| 35 | a) go to the “tests” directory |
| 36 | |
| 37 | b1) execute the file ./create_tests |
| 38 | It will create 3 basic test cases in the directory ~/repos/flexpart/tests_tmp |
| 39 | |
| 40 | b2) or execute the file /create_and_run |
| 41 | It will create the tests and run automatically |