Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero values generated from tResample::DoIt in GenericLandData #72

Open
WrenRaming opened this issue Sep 3, 2024 · 0 comments
Open

Zero values generated from tResample::DoIt in GenericLandData #72

WrenRaming opened this issue Sep 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@WrenRaming
Copy link
Collaborator

WrenRaming commented Sep 3, 2024

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.

@WrenRaming WrenRaming added the bug Something isn't working label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant