This repository includes the code we used in Landscape Modification and Nutrient- Driven Instability at a Distance:
- Ecology Letters paper (DOI: 10.1111/ele.13644)
- Preprint DOI: 10.1101/2020.04.20.050302 *).
We used Julia v.1.5.1 with the following packages:
See src/install_packages.jl as well as the Actions tab for more details.
Briefly, this repository includes:
src/ndid_core.jl: includes all core functions:- functions that encode the systems of differential equations,
- bifurcation analysis
- figures
src/simulation_example.jl: includes one example of a simulation (i.e., solving the differential equations for a given time span) for both systems,src/simulations_main.jl: includes the bifurcation analyses as presented in the main text,src/equilibrium_results.jl: uses the NLsolve packages to compute the equilibrium for both systems studied.src/sup/: includes all Julia files to reproduce supplementary figures.
For the main analysis, you can either run the code in simulation_main.jl line by line in an interactive session, or you can run it as a script:
julia src/simulations_main.jlSee also Actions tab. Note that all files in scr/sup can be run independently.
Please use the issue feature if you encounter any difficulty while trying to reproduce the analysis.