The implementation is based on LPJmL and contains processes for:
- water stress
- temperatures tress
- photosynthesis
- radiation
Requires an installation of Julia (1.8.2). The dependencies can be installed via the package manager ]
pkg> activate .
(LPJ) pkg> instantiate
Simulation parameters, options and directories are defined in src/default_parameters.jl
.
Inside the Julia REPL run:
using LPJ
run_lpj()
or from the command line
julia --project=. src/execute.jl
to benchmark the performance e.g. use
julia --project=. src/execute.jl --benchmark --find_lambda "solver"
to enable CUDA for GPUs, the --gpu
flag can be used.
The following flags can be used:
Flag | Type | Function |
---|---|---|
--gpu | Bool | Enable GPU |
--benchmark | Bool | Run performance benchmark |
--find_lambda | String | Algorithm to determin the optimal lambda |
To run all test on a GPU do
julia --project=. test/runtests.jl --gpu