_ _
(_) | |
_ __ ___ _ | | _ __ __ _
| ' _ \| / __| __| '__/ _
|
| | | | | | _ \ || | | (| |
|| || |||/_|| _,_|
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 commandgfortran --version
to check the compiler version. Alternatively the Intelifort
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 commandlocate 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/
, executemake
. -
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/
, executemake
. -
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 theparam_...
file to run the model.
For more information, see the manual (manual_Mistra_v9.0.pdf
) in the doc/
directory.