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.
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):
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.