hypre-space / hypre

Parallel solvers for sparse linear systems featuring multigrid methods.
https://www.llnl.gov/casc/hypre/
Other
674 stars 185 forks source link

Set HYPRE_HAVE_MPI_COMM_F2C in CMake build #1101

Closed Yannicked closed 1 week ago

Yannicked commented 3 months ago

In the CMake build, the HYPRE_HAVE_MPI_COMM_F2C variable was not set, which causes invalid communicators in some MPI implementations when HYPRE was called from Fortran.

This pull request addresses the issue by using CMake's check_symbol_exists to determine if the function or macro is available, and sets the variable accordingly.

victorapm commented 1 week ago

@Yannicked Thank you for your contribution!

I apologize for the delay. I'm changing the base to another development branch so I can make a few adjustments.