Skip to content

Add Makefile CLI option to disable mpi_f08 support#1407

Open
amstokely wants to merge 1 commit intoMPAS-Dev:developfrom
amstokely:build/cli_disable_mpi_f08
Open

Add Makefile CLI option to disable mpi_f08 support#1407
amstokely wants to merge 1 commit intoMPAS-Dev:developfrom
amstokely:build/cli_disable_mpi_f08

Conversation

@amstokely
Copy link
Contributor

This PR adds a Makefile CLI option, MPI_F08, that allows users to explicitly disable use of the mpi_f08 module during MPAS builds, even when the MPI provider supports it. Currently, MPAS automatically enables mpi_f08 whenever it is available, which prevents successful builds in environments and libraries that only support the legacy mpi module. With this change, setting MPI_F08=false skips the mpi_f08_test dependency and emits a message indicating that the build will use the classic MPI module instead. The default behavior remains unchanged, preserving automatic mpi_f08 usage 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.

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.
@amstokely amstokely force-pushed the build/cli_disable_mpi_f08 branch from ceda9d9 to 858441e Compare February 9, 2026 23:40
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