Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure PETSc headers are included after bout/petsclib.hxx #3024

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

ZedThree
Copy link
Member

@ZedThree ZedThree commented Nov 8, 2024

From that header:

PETSc "helpfully" defines macros for MPI functions that clobber the
real names, and short of #undef-ing all of them in every file
that includes any PETSc header, we can define the following macro
which should disable them, which I'm sure will work forever. This
means we must #include this header before any PETSc header!

A recent commit reordered the PETSc headers in this file

From that header:

> PETSc "helpfully" defines macros for MPI functions that clobber the
> real names, and short of `#undef`-ing all of them in every file
> that includes any PETSc header, we can define the following macro
> which should disable them, which I'm sure will work forever. This
> means we _must_ `#include` this header _before_ any PETSc header!

A recent commit reordered the PETSc headers in this file
Copy link
Contributor

@dschwoerer dschwoerer left a comment

Choose a reason for hiding this comment

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

Thanks, looks good!

@dschwoerer dschwoerer merged commit 088c92f into next Nov 8, 2024
28 checks passed
@dschwoerer dschwoerer deleted the fix-petsc-mpi-clash branch November 8, 2024 15:42
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.

2 participants