Add -lfftw3_mpi conditionally to the arch files

This commit is contained in:
Fabian Ducry 2021-08-10 07:13:08 +02:00 committed by Ole Schütt
parent 9cbea649c3
commit b6ff463b8a

View file

@ -83,7 +83,7 @@ case "$with_fftw" in
;;
esac
if [ "$with_fftw" != "__DONTUSE__" ]; then
[ "$MPI_MODE" != "no" ] && FFTW_LIBS="-lfftw3_mpi "
[ "$MPI_MODE" != "no" ] && FFTW_LIBS="IF_MPI(-lfftw3_mpi|) "
FFTW_LIBS+="-lfftw3 -lfftw3_omp"
if [ "$with_fftw" != "__SYSTEM__" ]; then
cat << EOF > "${BUILDDIR}/setup_fftw"