TROLL 4.0 is an individual- and trait-based model of forest dynamics. A full description of the model and discussion of the underlying modelling choices can be found in the following manuscript:
“TROLL 4.0: representing water and carbon fluxes, leaf phenology and intraspecific trait variation in a mixed-species individual-based forest dynamics model – Part 1: Model description. Maréchaux I, Fischer FJ, Schmitt S, Chave J” currently in an open review process for Geoscientific Model Development.
Required:
- CMake Build System, see https://cmake.org
- Ubuntu:
sudo apt install cmake - macOS:
brew install cmake
- Ubuntu:
- GNU Scientific Library (GSL) installation, see https://www.gnu.org/software/gsl/
- Ubuntu:
sudo apt install libgsl-dev - macOS:
brew install gsl
- Ubuntu:
- C++ compiler, both
g++(GNU Compiler Collection) andclang++(C language family frontend for LLVM) work fine- Ubuntu:
- Default install g++
sudo apt install g++ - Alternatively install clang++
sudo apt install clang++
- Default install g++
- macOS:
- Default install Xcode Command Line Tools (includes
clang++):xcode-select --install - Alternatively install
g++via Homebrewbrew install gcc
- Default install Xcode Command Line Tools (includes
- Ubuntu:
The following command line can be used to compile the code:
cd build/
cmake ..
makeThe code of TROLL 4.0 is written in C++ and requires five input files to run a simulation: (i) global parameters (global_inputs), (ii) species parameters (species), (iii) soil characteristics (soil), and finally, meteorological drivers varying at (iv) half-hour (halfhourly_climate) and (v) daily step (daily_climate).
The following command line can be used to run the code:
./TROLLv4_exe -i./example/global_inputs.txt -s./example/species.txt -m./example/daily_climate.txt -d./example/halfhourly_climate.txt -p./example/soil.txt -o./TROLLv4_testTROLL 4.0 can be set-up and run, and its outputs can be analyzed with an updated version of the R package rcontroll (https://github.com/sylvainschmitt/rcontroll/tree/TROLLV4), also available in R through the command:
devtools::install_github("sylvainschmitt/rcontroll", ref = "TROLLV4").The package also provide examples of input files and outputs.
Please use issues for any question regarding TROLL.
- Jérôme Chave, CNRS, jerome.chave@univ-tlse3.fr
- Isabelle Maréchaux, INRAE, isabelle.marechaux@inrae.fr
- Fabian Fischer, TUM, f.j.fischer@tum.de
- Sylvain Schmitt, CIRAD, sylvain.schmitt@cirad.fr