Skip to content

Conversation

@erikvansebille
Copy link
Member

This PR fixes a bug in JIT when an interpolation call overrides the error thrown before by another interpolation.

This could for example happen when a 3D interpolation throws an OutofSurface error, but a subsequent call to a 2D interpolation returns SUCCESS. Since the whole kernel will then return the last particle.state, the error is not captured

In this PR, the particle.state is always kept at the maximum error code. Since Errors are always higher than success (see this part of the kernel loop tutorial, errors thrown by any interpolation are propagated.

@erikvansebille erikvansebille merged commit 5b3a213 into master Aug 9, 2024
@erikvansebille erikvansebille deleted the JIT_keeping_track_highest_errorcode branch August 9, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants