Setup Information
- Raven version: latest
- Operating System: Any
Description
When defining more then 2000 soil classes with their corresponding parameters Raven runs into an access violation error. This happens because in the ParsePropertyFile.cpp the variable properties is constructed with a maximum size of 2000:
int MAX_NUM_IN_CLASS = max(max(MAX_VEG_CLASSES, MAX_LULT_CLASSES), 2000);
Later on properties[num_read] gets set and num_read will just iteratively increase without the limit of 2000, leading to said error.
Steps To Reproduce
- Create Model with more than 2000 Soil Classes
- try to run it
- change
int MAX_NUM_IN_CLASS = max(max(MAX_VEG_CLASSES, MAX_LULT_CLASSES), 2000); to int MAX_NUM_IN_CLASS = max(max(MAX_VEG_CLASSES, MAX_LULT_CLASSES), 10000);
- should work now
Additional context
No response
Contribution