Skip to content
Snippets Groups Projects
Commit e35ac89e authored by Mark OLESEN's avatar Mark OLESEN
Browse files

CONFIG: include static libraries in FFTW search (#1087)

parent 5187aa13
Branches
Tags
No related merge requests found
...@@ -68,6 +68,7 @@ have_fftw() ...@@ -68,6 +68,7 @@ have_fftw()
# Header/library names # Header/library names
header="fftw3.h" header="fftw3.h"
library="libfftw3$extLibso" library="libfftw3$extLibso"
static="libfftw3$extLiba"
if hasAbsdir "$FFTW_ARCH_PATH" if hasAbsdir "$FFTW_ARCH_PATH"
...@@ -77,7 +78,9 @@ have_fftw() ...@@ -77,7 +78,9 @@ have_fftw()
# FOAM_EXT_LIBBIN is allowed to be unset # FOAM_EXT_LIBBIN is allowed to be unset
library=$(findFirstFile \ library=$(findFirstFile \
$FOAM_EXT_LIBBIN/$library \ $FOAM_EXT_LIBBIN/$library \
$FFTW_ARCH_PATH/lib/$static \
$FFTW_ARCH_PATH/lib/$library \ $FFTW_ARCH_PATH/lib/$library \
$FFTW_ARCH_PATH/lib$WM_COMPILER_LIB_ARCH/$static \
$FFTW_ARCH_PATH/lib$WM_COMPILER_LIB_ARCH/$library \ $FFTW_ARCH_PATH/lib$WM_COMPILER_LIB_ARCH/$library \
) )
elif isSystem "$FFTW_ARCH_PATH" elif isSystem "$FFTW_ARCH_PATH"
......
...@@ -55,9 +55,17 @@ echo_hypre() ...@@ -55,9 +55,17 @@ echo_hypre()
have_hypre() have_hypre()
{ {
local header library static label settings warn local header library static label settings warn
# warn="==> skip hypre" warn="==> skip hypre"
# Basic setup/checks # Basic setup/checks. Prefer current environment value? (TDB)
if [ ! -d "$HYPRE_ARCH_PATH" ]
then
settings=$($WM_PROJECT_DIR/bin/foamEtcFile config.sh/hypre) || {
[ -n "$warn" ] && echo "$warn (no config.sh/hypre settings)"
return 1
}
. $settings
fi
if isNone "$HYPRE_ARCH_PATH" if isNone "$HYPRE_ARCH_PATH"
then then
[ -n "$warn" ] && echo "$warn (not available)" [ -n "$warn" ] && echo "$warn (not available)"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment