Skip to content

openfoam: Add support for modules for openfoam@2512:#4868

Open
furstj wants to merge 2 commits into
spack:developfrom
furstj:openfoam
Open

openfoam: Add support for modules for openfoam@2512:#4868
furstj wants to merge 2 commits into
spack:developfrom
furstj:openfoam

Conversation

@furstj

@furstj furstj commented May 16, 2026

Copy link
Copy Markdown
Contributor
  • Add support for compiling external modules (adios, visualization) via modules variant
  • Install sources for both plugins and modules

Note:

Copilot AI review requested due to automatic review settings May 16, 2026 10:47
@spackbot-triage spackbot-triage Bot requested a review from olesenm May 16, 2026 10:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds optional OpenFOAM “modules” subdirectories support in the Spack package, including new variant(s) and install-time inclusion of selected module sources.

Changes:

  • Extend submodules() to include modules/adios and modules/visualization based on a new modules variant selection.
  • Add a modules multi-variant (conditional on @2512:) and add logic to install modules/ (and plugins/) sources when requested.
  • Introduce an adios2 variant (currently not integrated with the new modules selection).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread repos/spack_repo/builtin/packages/openfoam/package.py
Comment thread repos/spack_repo/builtin/packages/openfoam/package.py Outdated
description="With optional modules",
values=("none", conditional("adios", "visualization", when="@2512:")),
multi=True,
)
adios2 is in dependencies as of openfoam@1912, so it seems to be not necessary anymore

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants