Skip to content

Conversation

@weiyuan-jiang
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

Add an option local_id to create locstream from a simple Nx1 grid

Related Issue

@weiyuan-jiang weiyuan-jiang requested a review from a team as a code owner February 12, 2026 19:05
@weiyuan-jiang weiyuan-jiang added 0 Diff Trivial The changes in this pull request are trivially zero-diff (documentation, build failure, &c.) 0 Diff The changes in this pull request have verified to be zero-diff with the target branch. labels Feb 12, 2026
!A special subroutine for Nx1 Grid in river-routing grid comp
!Some information in the locstream is not filled
subroutine MAPL_LocstreamCreateSimple(Locstream, grid, rc)
subroutine MAPL_LocstreamCreateSimple(Locstream, grid, local_id, rc)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you provide a use case where "local_id" would not be a contiguous list of integers?

I really don't think this option is needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This option is used to output mesh just like a locstream. The order will be the elementIDs (local_id here). We don't have to assume the elementIDs are contiguous inside a PET and across the distribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0 Diff Trivial The changes in this pull request are trivially zero-diff (documentation, build failure, &c.) 0 Diff The changes in this pull request have verified to be zero-diff with the target branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants