Commit e4007256 authored by Mark Olesen's avatar Mark Olesen Committed by Andrew Heather
Browse files

CONFIG: add sourcing hints for adios2, petsc

parent 89bc42dd
......@@ -42,7 +42,7 @@ if ($?FOAM_VERBOSE && $?prompt) then
echo "Using adios ($adios1_version) -> $ADIOS1_ARCH_PATH"
endif
# - only add if the directory really exists
# Only add to PATH if the directory really exists
_foamAddLibAuto $ADIOS1_ARCH_PATH
if ($status == 0) then
_foamAddPath $ADIOS1_ARCH_PATH/bin
......
......@@ -28,7 +28,7 @@ if ($?FOAM_VERBOSE && $?prompt) then
echo "Using adios ($adios2_version) -> $ADIOS2_ARCH_PATH"
endif
# - only add if the directory really exists
# Only add to PATH if the directory really exists
_foamAddLibAuto $ADIOS2_ARCH_PATH
if ($status == 0) then
_foamAddPath $ADIOS2_ARCH_PATH/bin
......
......@@ -44,8 +44,8 @@ fi
if command -v _foamAddLibAuto > /dev/null 2>&1
then
# Normal sourcing (not makeADIOS)
# - but only add if the directory really exists
# Normal sourcing (not makeAdios1)
# Only add to PATH if the directory really exists
if _foamAddLibAuto $ADIOS1_ARCH_PATH
then
......
......@@ -32,8 +32,8 @@ fi
if command -v _foamAddLibAuto > /dev/null 2>&1
then
# Normal sourcing (not makeADIOS)
# - but only add if the directory really exists
# Normal sourcing (not makeAdios2)
# Only add to PATH if the directory really exists
if _foamAddLibAuto $ADIOS2_ARCH_PATH
then
......
......@@ -36,8 +36,9 @@ then
echo "Using petsc ($petsc_version) -> $PETSC_ARCH_PATH" 1>&2
fi
if command -v _foamAddLibAuto > /dev/null 2>&1 # Normal sourcing (not makePETSC)
if command -v _foamAddLibAuto > /dev/null 2>&1
then
# Normal sourcing (not makePETSC)
_foamAddLibAuto $PETSC_ARCH_PATH
......
......@@ -19,7 +19,7 @@
# ADIOS2_ARCH_PATH
#
# Functions provided
# have_adios2, no_adios2, echo_adios2
# have_adios2, no_adios2, echo_adios2, hint_adios2
#
# Variables set on success
# HAVE_ADIOS2
......@@ -50,6 +50,22 @@ echo_adios2()
}
# Provide hint for enabling
hint_adios2()
{
/bin/cat<<INFORMATION 1>&2
==> adios2 not found?
Enable in the OpenFOAM etc/bashrc, define manually or try with the
following (POSIX shell):
eval \$(foamEtcFile -sh -config adios2 -- -force)
==
INFORMATION
}
# On success, return 0 and export variables
# -> HAVE_ADIOS2, ADIOS2_INC_DIR, ADIOS2_LIB_DIR
have_adios2()
......
......@@ -19,7 +19,7 @@
# PETSC_ARCH_PATH
#
# Functions provided
# have_petsc, no_petsc, echo_petsc
# have_petsc, no_petsc, echo_petsc, hint_petsc
#
# Variables set on success
# HAVE_PETSC
......@@ -50,6 +50,22 @@ echo_petsc()
}
# Provide hint for enabling
hint_petsc()
{
/bin/cat<<INFORMATION 1>&2
==> petsc not found?
Enable in the OpenFOAM etc/bashrc, define manually or try with the
following (POSIX shell):
eval \$(foamEtcFile -sh -config petsc -- -force)
==
INFORMATION
}
# On success, return 0 and export variables
# -> HAVE_PETSC, PETSC_INC_DIR, PETSC_LIB_DIR
have_petsc()
......
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