Skip to content

Add support for MOM6 stochastic_physics - #136

Open
mathomp4 wants to merge 7 commits into
developfrom
feature/add-mom6-stoch
Open

Add support for MOM6 stochastic_physics#136
mathomp4 wants to merge 7 commits into
developfrom
feature/add-mom6-stoch

Conversation

@mathomp4

@mathomp4 mathomp4 commented Aug 13, 2026

Copy link
Copy Markdown
Member

This pull request adds support for building and linking the external stochastic_physics package 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:

  • Updated MOM6_GEOSPlug/CMakeLists.txt to detect the presence of the external stochastic_physics package and conditionally add its subdirectory; sets a flag MOM6_USE_STOCHASTIC_PHYSICS and provides a warning if the package is not found.
  • Modified MOM6_GEOSPlug/mom6_cmake/CMakeLists.txt to only include the internal stochastic_physics source 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:

  • Added new MOM6_GEOSPlug/stochastic_physics_cmake/CMakeLists.txt to build the external stochastic_physics library, specifying its source files, dependencies, and required compile flags.

.gitignore update:

  • Updated .gitignore to exclude stochastic_physics directories, matching the handling of the mom6 directories.

Closes GEOS-ESM/MOM6#18

@mathomp4 mathomp4 added the 0 diff dataocean Zero-diff for the dataocean model label Aug 13, 2026
@mathomp4
mathomp4 requested a review from a team as a code owner August 13, 2026 12:31
@mathomp4 mathomp4 added 0 diff coupled Zero-diff for the coupled model 0 diff dataatm Zero-diff for the data atm model labels Aug 13, 2026
@mathomp4
mathomp4 requested a review from a team as a code owner August 13, 2026 12:31
@mathomp4
mathomp4 marked this pull request as draft August 13, 2026 12:35
@mathomp4
mathomp4 marked this pull request as ready for review August 13, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0 diff coupled Zero-diff for the coupled model 0 diff dataatm Zero-diff for the data atm model 0 diff dataocean Zero-diff for the dataocean model

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Building stochastic physics external package

1 participant