Skip to content

refactor[cartesian]: Better error message for out of bound read on stencils#2567

Merged
FlorianDeconinck merged 2 commits intoGridTools:mainfrom
CharlesKrop:improved_error_messages
Apr 6, 2026
Merged

refactor[cartesian]: Better error message for out of bound read on stencils#2567
FlorianDeconinck merged 2 commits intoGridTools:mainfrom
CharlesKrop:improved_error_messages

Conversation

@CharlesKrop
Copy link
Copy Markdown
Contributor

  • Better error message for out of bound read: refactor [cartesian]

Description

Changed the error message raised when a stencil attempts to read outside of the valid bounds of an array. The new message now provides information about which fields fail, their side, and some tips to guide users resolving the error.

Existing test suite covers this change, new tests should not be required to validate this change.

@FlorianDeconinck FlorianDeconinck changed the title Better error message for out of bound read feat[cartesian]: Better error message for out of bound read on stencils Apr 3, 2026
@FlorianDeconinck FlorianDeconinck self-requested a review April 3, 2026 16:18
Copy link
Copy Markdown
Contributor

@FlorianDeconinck FlorianDeconinck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - co-authored.

@FlorianDeconinck FlorianDeconinck changed the title feat[cartesian]: Better error message for out of bound read on stencils refactor[cartesian]: Better error message for out of bound read on stencils Apr 3, 2026
@FlorianDeconinck
Copy link
Copy Markdown
Contributor

cscs-ci run

@FlorianDeconinck FlorianDeconinck merged commit 0a0ec7f into GridTools:main Apr 6, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants