Closed glaroc closed 4 years ago
Guillaume, I haven't seen this one before. I would guess there's a missing ecoregion in your climate input.
@rmscheller I just tried it on a Windows computer with the same script and it's running without issues. So this seems to be a bug specific to Linux.
The problem seems to be with this commit: https://github.com/LANDIS-II-Foundation/Extension-Biomass-Succession/commit/88f4f6f5dfbe45827dcf322044d19adef138110e
If I checkout the version before this commit, the model runs fine on Linux. I suspect the problem has nothing to do with Linux, but with this commit, which I assume was made after the latest version compiled for Windows.
Hello, Mr Scheller.
I think that I identified the problem. The problem seem to comes from the addition of the following line :
if (Timestep > 0)
ClimateRegionData.SetAllEcoregions_FutureAnnualClimate(ModelCore.CurrentTime);
...in the "Run" function of the extension. It forces the extension to use data from the ClimateConfigFile. However, if the user haven't provided this parameter (because he/she doesn't have a ClimateConfigFile), the objects used by this function are not initialized beforehand, resulting in the error.
I used the examples files of the extension to try; if I nullify the ClimateConfigFile parameter, the bug happen. If I restore it, the bug is gone. I imagine that Guillaume is having this problem because of this issue, and that it has indeed nothing to do with Linux.
I recommand that a condition is put that this function is used only if a ClimateConfigFile parameter has been given by the user. It should solve the issue, I believe.
Clement, Please test the latest version. Thanks, Rob
Just tested at the instant, it seems to be fixed ! Thank you : ) !
Hi, I'm not sure if this is a bug or a problem with my setup, but I am trying to run LANDIS on Linux and after running through the first time step after the Cohort reproduction is completed, I get the following error:
I'm not sure how to go about solving this.