Skip to content

Use config option to determine whether to add coeffs_reconstruct to the stream#448

Draft
cbegeman wants to merge 2 commits intoE3SM-Project:mainfrom
cbegeman:ocn/add-optional-coeffs-reconstruct-output
Draft

Use config option to determine whether to add coeffs_reconstruct to the stream#448
cbegeman wants to merge 2 commits intoE3SM-Project:mainfrom
cbegeman:ocn/add-optional-coeffs-reconstruct-output

Conversation

@cbegeman
Copy link
Collaborator

Use config option to determine whether to add coeffs_reconstruct to the stream for forward steps.

Checklist

  • User's Guide has been updated
  • Developer's Guide has been updated
  • API documentation in the Developer's Guide (api.md) 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
  • New tests have been added to a test suite

@cbegeman
Copy link
Collaborator Author

cbegeman commented Jan 12, 2026

@xylar Let me know what you think.

Pro of using this approach: no need to run a separate forward step besides those being run. (coeffs_reconstruct doesn't have a time dimension so I think this stream is only written once but it's worth double checking.) I was also thinking we could set write_coeffs_reconstruct = True in polaris/ocean/mpas_ocean.cfg and run whichever cases we want to have cached.

Con of using this approach: if there are multiple forward steps for a single test case (corresponding to the config file for which write_coeffs_reconstruct = True, all will produce the coeffs_reconstruct stream.

@cbegeman cbegeman force-pushed the ocn/add-optional-coeffs-reconstruct-output branch from 3da3ae4 to b548c38 Compare January 12, 2026 22:21
@cbegeman
Copy link
Collaborator Author

The plan will be to

  1. Cache all mesh steps for test cases that support Omega (https://docs.e3sm.org/polaris/main/developers_guide/api.html#cache)
  2. Use cached mesh steps in Omega PR and nightly suites
  3. Add coeffs_reconstruct.nc files corresponding to each mesh to the input_database with date stamps
  4. For any viz steps that support Omega and use reconstructed velocity fields, load coeffs_reconstruct.nc and use reconstruct_variable https://github.com/MPAS-Dev/MPAS-Tools/blob/297a1b0bf08c0d9e191c0b0e1d35ae315ee49617/conda_package/mpas_tools/vector/reconstruct.py#L2-L18

@cbegeman
Copy link
Collaborator Author

This PR addresses #445

@cbegeman cbegeman force-pushed the ocn/add-optional-coeffs-reconstruct-output branch from b548c38 to 36bad9c Compare January 27, 2026 00:56
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.

1 participant

Comments