Skip to content
troll-modelPublic

About

TROLL 4.0 is an individual- and trait-based model of forest dynamics.

Resources

Stars

15 stars

Watchers

2 watching

Forks

Repository files navigation

TROLL

DOI

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.

Installation

Required:

  • CMake Build System, see https://cmake.org
    • Ubuntu: sudo apt install cmake
    • macOS: brew install cmake
  • GNU Scientific Library (GSL) installation, see https://www.gnu.org/software/gsl/
    • Ubuntu: sudo apt install libgsl-dev
    • macOS: brew install gsl
  • C++ compiler, both g++ (GNU Compiler Collection) and clang++ (C language family frontend for LLVM) work fine
    • Ubuntu:
      • Default install g++ sudo apt install g++
      • Alternatively install clang++ sudo apt install clang++
    • macOS:
      • Default install Xcode Command Line Tools (includes clang++): xcode-select --install
      • Alternatively install g++ via Homebrew brew install gcc

The following command line can be used to compile the code:

cd build/
cmake ..
make

Get started

The 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_test

Alternative

TROLL 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.

Help wanted?

Please use issues for any question regarding TROLL.

Core group

About

TROLL 4.0 is an individual- and trait-based model of forest dynamics.

Resources

Stars

15 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages