mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: Created conditional Allwmake scripts for FFTW dependent applications
This commit is contained in:
14
applications/solvers/DNS/dnsFoam/Allwmake
Executable file
14
applications/solvers/DNS/dnsFoam/Allwmake
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
|
|
||||||
|
if [ -f "$FFTW_ARCH_PATH/include/fftw3.h" ] || \
|
||||||
|
[ "${FFTW_ARCH_PATH##*-}" = system -a -f "/usr/include/fftw3.h" ]
|
||||||
|
then
|
||||||
|
wmake
|
||||||
|
else
|
||||||
|
echo
|
||||||
|
echo "Skipping dnsFoam solver (no FFTW)"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
14
applications/utilities/preProcessing/boxTurb/Allwmake
Executable file
14
applications/utilities/preProcessing/boxTurb/Allwmake
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
|
|
||||||
|
if [ -f "$FFTW_ARCH_PATH/include/fftw3.h" ] || \
|
||||||
|
[ "${FFTW_ARCH_PATH##*-}" = system -a -f "/usr/include/fftw3.h" ]
|
||||||
|
then
|
||||||
|
wmake
|
||||||
|
else
|
||||||
|
echo
|
||||||
|
echo "Skipping boxTurb utility (no FFTW)"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
Reference in New Issue
Block a user