Enhance shareable utility to override CICE ice_in options - #3339
Draft
NickSzapiro-NOAA wants to merge 1 commit into
Draft
Enhance shareable utility to override CICE ice_in options#3339NickSzapiro-NOAA wants to merge 1 commit into
NickSzapiro-NOAA wants to merge 1 commit into
Conversation
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit Queue Requirements:
test_changes.listindicates which tests, if any, are changed by this PR. Committest_changes.list, even if it is empty.Description:
Temporary AI description:
Summary:
Enhances recently added bash utility to handle both single-key overrides and multi-line block replacements for Fortran namelists (targeting ice_in).
Key Features:
Unified Workflow: Reads standard input (stdin) via a smart parser that can dynamically handle single lines (dt = 1800), full namelist blocks (&grid_nml ... /), or a mix of both.
Ordered Execution: Overrides are sequentially numbered and applied strictly top-to-bottom, guaranteeing deterministic outputs even when interleaving block and single-line overrides.
Fail-Fast Integrity: Validates all requested overrides. If a key or block is missing (e.g., due to a typo), throw error (exit 1) to halt execution, preventing unintended silent behavior.
HPC / CI Safe: Hardened against set -e traps, uses pure POSIX tools (sed, awk, grep) to avoid OS-specific regex issues, and securely cleans up temp directories. Built-in unit tests included.
Commit Message:
Priority:
Git Tracking
UFSWM:
Sub component Pull Requests:
UFSWM Blocking Dependencies:
Documentation:
Changes
Regression Test Changes (Please commit test_changes.list):
Input data Changes:
Library Changes/Upgrades:
Testing Log:
Testing Remarks: