Skip to content

New home for MAPL_GetHorzIJIndex - in geom, as MAPL_GridGetHorzIJIndex#4476

Draft
pchakraborty wants to merge 9 commits intorelease/MAPL-v3from
feature/pchakrab/get-horz-ij-index
Draft

New home for MAPL_GetHorzIJIndex - in geom, as MAPL_GridGetHorzIJIndex#4476
pchakraborty wants to merge 9 commits intorelease/MAPL-v3from
feature/pchakrab/get-horz-ij-index

Conversation

@pchakraborty
Copy link
Contributor

Types of change(s)

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Trivial change (affects only documentation or cleanup)
  • Refactor (no functional changes, no api changes)

Checklist

  • Tested this change with a run of GEOSgcm
  • Ran the Unit Tests (make tests)

Description

Ported MAPL_GetHorzIJIndex from base to geom. Renamed as MAPL_GridGetHorzIJIndex

Note

Goal is for each grid kind (lat-lon, cubed-sphere, etc.) to have its own implementation of GridGetHorzIJIndex. This is to be addressed in a separate PR

Related Issue

#4475

@pchakraborty pchakraborty requested a review from a team as a code owner March 3, 2026 02:25
@pchakraborty pchakraborty self-assigned this Mar 3, 2026
@pchakraborty pchakraborty added 0 Diff The changes in this pull request have verified to be zero-diff with the target branch. 🛠️ Refactor This is code refactoring 📈 MAPL3 MAPL 3 Related Changelog Skip Skips the Changelog Enforcer labels Mar 3, 2026
Comment on lines +97 to +105
! Set input points (in radians)
lonR8(1) = 0.0d0
latR8(1) = 0.0d0
lonR8(2) = 1.5707963267948966d0 ! pi/2
latR8(2) = 0.7853981633974483d0 ! pi/4
lonR8(3) = 3.1415926535897932d0 ! pi
latR8(3) = -0.7853981633974483d0 ! -pi/4
lonR8(4) = -1.5707963267948966d0 ! -pi/2
latR8(4) = 1.5707963267948966d0 ! pi/2 (north pole)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not worth fixing, but ... why not use pi/2 and such directly rather than putting in the decimal representation? Apologies if this was a pre-existing test that you only copied.

tclune
tclune previously approved these changes Mar 3, 2026
@pchakraborty pchakraborty marked this pull request as draft March 4, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0 Diff The changes in this pull request have verified to be zero-diff with the target branch. Changelog Skip Skips the Changelog Enforcer 📈 MAPL3 MAPL 3 Related 🛠️ Refactor This is code refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants