From 36126ccb7d70e8b4151cd44be7d87dd9915e4ecc Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 5 May 2018 02:14:17 -0400 Subject: [PATCH] be more verbose in USER-PHONON install script when KSPACE is not installed --- src/USER-PHONON/Install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/USER-PHONON/Install.sh b/src/USER-PHONON/Install.sh index cfa369bb05..3428415443 100644 --- a/src/USER-PHONON/Install.sh +++ b/src/USER-PHONON/Install.sh @@ -26,6 +26,16 @@ action () { fi } +# USER-PHONON uses the parallel FFT wrapper used in PPPM, +# so we must require the KSPACE package to be installed. + +if (test $1 = 1) then + if (test ! -e ../fft3d_wrap.h) then + echo "Must install KSPACE package with USER-PHONON" + exit 1 + fi +fi + # list of files with optional dependcies action fix_phonon.cpp fft3d_wrap.h