-
Notifications
You must be signed in to change notification settings - Fork 6
Zero values generated from tResample::DoIt in GenericLandData #72
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
It appears that the resampling routine in tResample::DoIt under the right conditions will return zero for a landuse class ID even if that value does not exist for a landuse (class). This is an issue the will cause segmentation fault errors in InitSet in the following code snippet (tHydroModel L 424):
landPtr->setLandPtr( cn->getLandUse() );
a_LU = landPtr->getLandProp(1);
as the land use class is modified by -1 and stored in the shared variable currClass. This is an issues when the landuse class is 0 resulting in accessing a list with the index -1.
Note: This issue appears to be related parallel mode. This is supported by the evidence that for the same mode setup this error does not occur when ran in serial.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working