Commit ca20b963 authored by Mark Olesen's avatar Mark Olesen

CONFIG: relax the hasAdios library check

parent c635574a
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Parse arguments for library compilation
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
adiosFoam/Allwmake
functionObjects/Allwmake
......
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
cd ${0%/*} || exit 1 # Run from this directory
if ../hasAdios
then
wmake libso
else
echo
echo "Skipping adiosFoam library"
echo
echo "==> skip adiosFoam library"
fi
# -----------------------------------------------------------------------------
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
cd ${0%/*} || exit 1 # Run from this directory
if ../hasAdios
then
......
#!/bin/sh
# Check if the prerequisites for ADIOS are fulfilled
# exit 0 on success
if [ "${ADIOS_ARCH_PATH##*-}" = none ]
then
echo "Building ADIOS components disabled"
echo "==> skip adios (disabled)" 1>&2
exit 1
fi
if [ -z "$ADIOS_ARCH_PATH" ]
then
/bin/cat<<ERROR 1>&2
==================================================
ERROR: the ADIOS_ARCH_PATH variable is not set
==> skip adios (ADIOS_ARCH_PATH variable not set)
You define by hand, or trying the following
Define manually or try with the following:
foamEtcFile -q config.sh/ADIOS && . \$(foamEtcFile config.sh/ADIOS)
==================================================
foamEtcFile -q config.sh/ADIOS && . \$(foamEtcFile config.sh/ADIOS)
==
ERROR
exit 1
fi
[ -f "$ADIOS_ARCH_PATH/include/adios.h" ] || \
[ "${ADIOS_ARCH_PATH##*-}" = system -a -f "/usr/include/adios.h" ] || {
/bin/cat<<WARNING 1>&2
==================================================
WARNING: cannot build ADIOS components without headers
"$ADIOS_ARCH_PATH/include/adios.h"
or
"/usr/include/adios.h"
Do you need to use the ThirdParty 'makeADIOS'?
==================================================
WARNING
echo "==> skip adios (no headers)"
exit 1
}
if [ -r "$ADIOS_ARCH_PATH/lib$WM_COMPILER_LIB_ARCH/libadios_${FOAM_MPI}.a" ]
# Normal library naming
for i in \
"$ADIOS_ARCH_PATH/lib$WM_COMPILER_LIB_ARCH/libadios.so" \
"$ADIOS_ARCH_PATH/lib$WM_COMPILER_LIB_ARCH/libadios.a" \
"$ADIOS_ARCH_PATH/lib/libadios.so" \
"$ADIOS_ARCH_PATH/lib/libadios.a" \
;
do
if [ -r "$i" ]
then
echo "adios lib found" 1>&2
exit 0
fi
done
if [ -r "$ADIOS_ARCH_PATH/lib$WM_COMPILER_LIB_ARCH/libadios_${FOAM_MPI}.a" ] \
|| [ -r "$ADIOS_ARCH_PATH/lib$WM_COMPILER_LIB_ARCH/libadios_${FOAM_MPI}.so" ]
then
echo "Has ADIOS_ARCH_PATH with headers and libraries ($FOAM_MPI)" 1>&2
echo "adios lib ($FOAM_MPI)" 1>&2
else
/bin/cat<<WARNING 1>&2
==================================================
WARNING: cannot build ADIOS components without libraries
missing library for '$FOAM_MPI'
==> skip adios (missing library)
Do you need to use the ThirdParty 'makeADIOS'?
==================================================
Could try using ThirdParty 'makeADIOS' first.
==
WARNING
exit 1
fi
......
Markdown is supported
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