DrylandEcology / rSFSTEP2

R program that interfaces with the STEPWAT2 C code and runs in parallel for multiple sites, climate scenarios, disturbance regimes, and time periods
0 stars 1 forks source link

STEPWAT2 simulation years is hard-coded to 300 in CallSTEPWAT2.R and data compilation will fail if simulation years is not equal to 300 #244

Closed kpalmqui closed 3 years ago

kpalmqui commented 3 years ago

Currently, the number of STEPWAT2 simulation years is hard-coded to 300 within CallSTEPWAT2.R when the year column is added during compilation of monthly output files.

Instead, I have created a new parameter, simyears, which is set at the top of the Main.R with the other user-defined parameters. The default is set to 300 years, but if the user wants a different number of simulation years it can easily be set here. I also added this step to the README to alert users.

kpalmqui commented 3 years ago

resolved by 0f324acd4a6a696b79b2a40d6879566f5ee6e477