Add Makefile CLI option to disable mpi_f08 support#1407
Open
amstokely wants to merge 1 commit intoMPAS-Dev:developfrom
Open
Add Makefile CLI option to disable mpi_f08 support#1407amstokely wants to merge 1 commit intoMPAS-Dev:developfrom
amstokely wants to merge 1 commit intoMPAS-Dev:developfrom
Conversation
This change introduces a Makefile CLI flag that allows users to explicitly disable mpi_f08 integration even when the MPI provider supports it. By setting MPI_F08=false, MPAS will skip the mpi_f08_test dependency and build against the legacy mpi module instead, improving portability across MPI toolchains and libraries that lack mpi_f08 support.
ceda9d9 to
858441e
Compare
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 PR adds a Makefile CLI option,
MPI_F08, that allows users to explicitly disable use of thempi_f08module duringMPASbuilds, even when the MPI provider supports it. Currently, MPAS automatically enablesmpi_f08whenever it is available, which prevents successful builds in environments and libraries that only support the legacympimodule. With this change, settingMPI_F08=falseskips thempi_f08_testdependency and emits a message indicating that the build will use the classic MPI module instead. The default behavior remains unchanged, preserving automaticmpi_f08usage unless the user opts out. This makes MPAS more portable across a wider range of MPI toolchains and avoids the need for local Makefile patches in downstream workflows.