Skip to content

Fixing the value of the last index of ob_indices#24

Merged
spiani merged 1 commit into
mainfrom
fixing_last_index
Mar 19, 2026
Merged

Fixing the value of the last index of ob_indices#24
spiani merged 1 commit into
mainfrom
fixing_last_index

Conversation

@spiani

@spiani spiani commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings March 19, 2026 11:30
@spiani spiani self-assigned this Mar 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the computation of the “open boundary” index value used in ob_indices generation by using the correct horizontal dimension (I vs J) when the boundary is on the “end” side (North/East).

Changes:

  • Use sponge_index (boundary-normal axis) instead of domain_index (along-boundary axis) when deriving the last valid boundary index from mask.shape.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@spiani spiani merged commit 2164702 into main Mar 19, 2026
5 checks passed
@spiani spiani deleted the fixing_last_index branch March 19, 2026 11:32
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