Getting started
This page outlines requirements and installation steps for the code. Currently, GNU/Linux and MacOS (including ARM) are supported.
Software requirements
- gfortran
- netcdf
- netcdf-fortran
- make
- wget
- curl
- unzip
- cmake
Do not install Julia using your system package manager. Install only from julialang.org as below.
Installation
Follow the ordered steps below
Install Julia's package manager
curl -fsSL https://install.julialang.org | sh
Download AGNI
git clone https://github.com/nichollsh/AGNI.git && cd AGNI
Setup SOCRATES by doing either ONE of the following...
- a) Follow the instructions on the SOCRATES GitHub page
- b) OR, run
./src/get_socrates.sh
Setup FastChem
./src/get_fastchem.sh
Install AGNI
./src/get_agni.sh
AGNI is now installed as a package of the Julia environment in the AGNI/ directory. These steps will have downloaded some basic input data.
The RAD_DIR environment variable must be set to your SOCRATES path whenever AGNI is being used. This is so that AGNI can locate the SOCRATES libraries.
Visit the Troubleshooting page if you encounter any problems. This page can usually resolve your problem.
Testing
If you want to run the tests manually, simply use the script in the test/ folder...
julia --project test/runtests.jlThis will print information on whether tests passed or failed.
Updating
It's important that you keep AGNI up to date, especially if you are using as part of the PROTEUS framework. Use this script to automatically pull changes from GitHub and download any required data files.
./src/get_agni.shWhat next?
To run AGNI with the default configuration file:
./agni.jl res/config/default.tomlOutput files are written to the directory specified in the configuration file (default: out/).
See Tutorials for a guided introduction to AGNI with example outputs results.
Refer to the other How-to guides for steps on configuring the model for your own science cases.