_ _
(_) | |
_ | | | ' ` | / | | '/ ` | | | | | | | _ \ || | | (| | || || |||/_|_| \,_|
Mistra is a one dimensional chemical model of the Marine Boundary layer.
For the license, see the LICENSE
file.
For authorship, credits, acknowledgements, funding information, see the CREDITS.md
file.
The following packages are required:
a Fortran compiler. The default is GNU gfortran
. Use the command gfortran --version
to check the compiler version. Alternatively the Intel ifort
compiler can be used.
the NetCDF Fortran development library. On Debian (and Debian derivatives) the package is called libnetcdff-dev
. Depending on the distribution, it may have a different name. Use the command locate netcdf.inc
to check that the library is installed and its location.
the C shell (or the tcsh shell).
optional: Ferret (https://ferret.pmel.noaa.gov/Ferret/) to use the plotting scripts in the scripts/
directory.
Install KPP-Mistra. Refer to the README.md
file in the KPP-Mistra repository for instructions.
Start the C or the tcsh shell.
Generate the mechanism files: in ./src/mech/
, execute make
.
Edit ./src/Makefile
to set the path to the NetCDF library (netcdf.inc
, see above) and the NetCDF compilation flags (-lnetcdf
or -lnetcdffor
-lnetcdf -lnetcdff). Change the Fortran compiler if needed (the default is
gfortran`).
Compile the code: in ./src/
, execute make
.
In the param/param_...
file, set the appropriate path to the Mistra input files. It is advised to use a directory that will not be duplicated for each version the user will run, but choose a generic directory instead. Set the appropriate path to parent output directory, to the executable, and set the namelist to be used. Run the param_...
file to run the model.
For more information, see the manual (manual_Mistra_v9.0.pdf
) in the doc/
directory.