be more verbose in USER-PHONON install script when KSPACE is not installed

This commit is contained in:
Axel Kohlmeyer 2018-05-05 02:14:17 -04:00
parent eeee2d3026
commit 36126ccb7d
1 changed files with 10 additions and 0 deletions

View File

@ -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