geco-bern / rsofun

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.
https://geco-bern.github.io/rsofun/
GNU General Public License v3.0
25 stars 28 forks source link

`totseed` and `totNewC` contain trash on the first spinup year #243

Open marcadella opened 2 hours ago

marcadella commented 2 hours ago

totseed (C and N )and totNewC (C and N) are initialized in vegn_reproduction() which is called after annual_diagnostics() resulting in the first spinup year annual data containing trash for this variables.

marcadella commented 2 hours ago

@stineb Should I initialize to 0 in initialize_vegn_tile()?

stineb commented 2 hours ago

if they are components of the vegn derived type, then yes