Add support for MOM6 stochastic_physics - #136
Open
mathomp4 wants to merge 7 commits into
Open
Conversation
Gitflow: Merge develop into main for release
mathomp4
marked this pull request as draft
August 13, 2026 12:35
mathomp4
marked this pull request as ready for review
August 13, 2026 12:44
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.
This pull request adds support for building and linking the external
stochastic_physicspackage in the MOM6_GEOSPlug project. If the external package is available, it is used instead of the internal compile-only stubs; otherwise, the build falls back to the internal stubs with a warning. The build system is updated to handle this logic, and a new CMake configuration for the external package is included.Build system enhancements for stochastic physics:
MOM6_GEOSPlug/CMakeLists.txtto detect the presence of the externalstochastic_physicspackage and conditionally add its subdirectory; sets a flagMOM6_USE_STOCHASTIC_PHYSICSand provides a warning if the package is not found.MOM6_GEOSPlug/mom6_cmake/CMakeLists.txtto only include the internalstochastic_physicssource files if the external package is not present, and to add the external package as a dependency when available. [1] [2] [3]Addition of external stochastic physics build configuration:
MOM6_GEOSPlug/stochastic_physics_cmake/CMakeLists.txtto build the externalstochastic_physicslibrary, specifying its source files, dependencies, and required compile flags..gitignore update:
.gitignoreto excludestochastic_physicsdirectories, matching the handling of themom6directories.Closes GEOS-ESM/MOM6#18