Implements the Simulating Optimal FUNctioning framework for site-scale simulations of ecosystem processes, including model calibration. It contains Fortran 90 modules for the P-model, SPLASH, and BiomeE models.
The use of array lower bounds was causing issues with compilation using llvm in CRAN. These have now been removed (but one, which should not matter as it is used in a function).
Use dynamically allocated arrays for species parameters and init_cohorts. This will prevent users from getting segfaults when they provide more entries than the code expects.
Remove the global variable spdata (the data is now located in myinterface, as one expects for this kind of parameter)
Fix an issue where the order in which the user provides species parameter impacts the output.
Protect user from getting segfault when a cohorts spirals down to 0
init_cohorts
. This will prevent users from getting segfaults when they provide more entries than the code expects.spdata
(the data is now located inmyinterface
, as one expects for this kind of parameter)