Skip to content

Conversation

@mt5555
Copy link
Contributor

@mt5555 mt5555 commented Jan 16, 2026

HOMME2SCRIP.py:
remove unused variable
fix grid_rank (1=unstructured grid, 2=lat/lon grid)
includes speedups from PR #7998

HOMME2META.py
added python version of script to create "latlon" file

template.job:
update namelist to demonstrate how to change output filename
add -c srun options needed for large RRM grids

[BFB] no source code changes - only changes to scripts used to generate atmospheric grid template files

@mt5555 mt5555 changed the title tweaks for homme_tool to handle large RRM grids (PR #XXX) tweaks for homme_tool to handle large RRM grids (PR #7995) Jan 16, 2026
@mt5555 mt5555 requested review from Copilot and whannah1 January 16, 2026 13:33
Copy link
Contributor

Copilot AI left a comment

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 updates the HOMME tool scripts to improve handling of large RRM (regionally refined mesh) grids. The changes focus on script configuration and fixes to support grids with millions of elements that require special memory and parallelization settings.

Changes:

  • Fixed grid_dims value in SCRIP file generation to correctly represent unstructured grids (value of 1 instead of grid size)
  • Removed unused grid_corners variable from Python SCRIP output
  • Updated template job script with RRM grid support including higher -c values for srun and configuration examples for large meshes

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
components/homme/test/tool/template.job Added RRM grid configuration examples, updated srun parameters for large grids, and added mesh prefix support for flexible output naming
components/homme/test/tool/python/HOMME2SCRIP.py Fixed grid_dims to use value 1 for unstructured grids and removed unused grid_corners coordinate variable
components/homme/test/tool/python/HOMME2META.py New Python script to convert HOMME grid template files to latlon format (alternative to NCL version)
components/homme/test/tool/ncl/HOMME2SCRIP.ncl Updated input filename and changed grid_imask to integer type, removed conditional NetCDF4 format setting
components/homme/test/tool/ncl/HOMME2META.ncl Updated input filename and removed conditional NetCDF4 format setting

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

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

components/homme/test/tool/python/HOMME2SCRIP.py:32

  • Corrected grammar from 'which included' to 'which is included'.
  This requires libraries such as xarray, which included in the E3SM unified environment:

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

whannah1 and others added 4 commits January 16, 2026 15:55
HOMME2SCRIP.py:  fix two bugs in variable metadata
template.job:  update namelist to demonstrate how to change output filename

[BFB]

Update components/homme/test/tool/template.job

Co-authored-by: Copilot <[email protected]>

Update components/homme/test/tool/python/HOMME2META.py

Co-authored-by: Copilot <[email protected]>

Update components/homme/test/tool/template.job

Co-authored-by: Copilot <[email protected]>

Update components/homme/test/tool/python/HOMME2META.py

Co-authored-by: Copilot <[email protected]>

Update components/homme/test/tool/python/HOMME2META.py

Co-authored-by: Copilot <[email protected]>

Update components/homme/test/tool/python/HOMME2SCRIP.py

Co-authored-by: Copilot <[email protected]>

Update components/homme/test/tool/python/HOMME2META.py

Co-authored-by: Copilot <[email protected]>

Update components/homme/test/tool/python/HOMME2META.py

Co-authored-by: Copilot <[email protected]>

typo in comments
@mt5555 mt5555 mentioned this pull request Jan 17, 2026
@mt5555 mt5555 force-pushed the homme_tool_tweaks branch from b74c321 to e9cb07d Compare January 17, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants