Skip to content

Fall back to E3SM seawater constants missing from the namelist - #1168

Open
xylar wants to merge 1 commit into
MPAS-Dev:mainfrom
xylar:fix-missing-seawater-constants
Open

xylar wants to merge 1 commit into
MPAS-Dev:mainfrom
xylar:fix-missing-seawater-constants

Conversation

@xylar

@xylar xylar commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Use E3SM's seawater density and heat capacity (SHR_CONST_RHOSW, SHR_CONST_CPSW) when config_density0 or config_specific_heat_sea_water is not in the MPAS-Ocean namelist, as will be the case after E3SM-Project/E3SM#9208. NameList.getfloat() gets an optional default for this. The values are the same as the old namelist defaults, so results for older runs do not change.

Checklist

  • User's Guide has been updated
  • If this PR adds a new analysis task, it has also been added to the user's guide
  • Developer's Guide has been updated
  • API documentation in the Developer's Guide (api.rst) has any new or modified class, method and/or functions listed
  • Documentation has been built locally and changes look as expected
  • Testing comment in the PR documents testing used to verify the changes

Fixes #1167

Posted by Claude Code on @xylar's behalf.

🤖 Generated with Claude Code

E3SM's MPAS-Ocean is moving its seawater density and heat capacity to
the shared physical constants, so config_density0 and
config_specific_heat_sea_water will no longer be in mpaso_in.  The
ocean heat content, ocean-region time series and conservation tasks
read these options and would fail.

Add an optional default to NameList.getfloat() and use the matching
CIME constants (SHR_CONST_RHOSW and SHR_CONST_CPSW, the same values as
the old namelist defaults) when an option is missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@xylar

xylar commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator Author

Testing

Merged with main and #1132 (9c866c082), the OHC, ocean-region and conservation tasks ran on two 20-year E3SM G-cases without config_density0 or config_specific_heat_sea_water. All tasks succeeded: control vs. obs, coupled vs. control.

Posted by Claude Code on @xylar's behalf.

This branch has not been deployed

No deployments
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.

OHC, ocean-region and conservation tasks fail without config_density0

1 participant