From 351a2e8b624abe5bfc2d075e1b771e80a1f37dcf Mon Sep 17 00:00:00 2001 From: Antonio Trande Date: Mon, 1 Apr 2024 18:11:30 +0200 Subject: [PATCH] Fix Scotch MPI include directories in RHEL --- petsc.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/petsc.spec b/petsc.spec index 1196829..b89f3ed 100644 --- a/petsc.spec +++ b/petsc.spec @@ -257,7 +257,11 @@ %endif \ %if %{with ptscotch} \ --with-ptscotch=1 \\\ + %if 0%{?rhel} \ + --with-ptscotch-include=$MPI_INCLUDE \\\ + %else \ --with-ptscotch-include=$MPI_INCLUDE/scotch \\\ + %endif \ --with-ptscotch-lib="-L$MPI_LIB -lptscotch -lscotch -lptscotcherr -lscotcherr" \\\ %endif \ %if %{with mumps} \