diff --git a/etc/config.csh/adios1 b/etc/config.csh/adios1 index 108a8ee6f64977b94b9dddb61b216b19e21a015c..5457d09e350f7e5befdcbd3015b1c9231fd86658 100644 --- a/etc/config.csh/adios1 +++ b/etc/config.csh/adios1 @@ -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 diff --git a/etc/config.csh/adios2 b/etc/config.csh/adios2 index 81f219620415683063ec1c88b66c779a2c508e99..8265ed0e75bd562a2f969e1aa09c4354c26b4302 100644 --- a/etc/config.csh/adios2 +++ b/etc/config.csh/adios2 @@ -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 diff --git a/etc/config.sh/adios1 b/etc/config.sh/adios1 index f9393fe03bbf441dcc1f8fe677954902b06a40d2..330da7dceb7ee6b529236e423a05253f728342f5 100644 --- a/etc/config.sh/adios1 +++ b/etc/config.sh/adios1 @@ -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 diff --git a/etc/config.sh/adios2 b/etc/config.sh/adios2 index 515d5864983bc8467961943f47065eb864205e8d..0c592fdc4a35b416babb77ce3b6ec821f61d1328 100644 --- a/etc/config.sh/adios2 +++ b/etc/config.sh/adios2 @@ -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 diff --git a/etc/config.sh/petsc b/etc/config.sh/petsc index 3104702764723b2e65d50df1e95941dbfc5c4266..d6b0e787a51552fb51936fc8c0faa7fd9f6718a8 100644 --- a/etc/config.sh/petsc +++ b/etc/config.sh/petsc @@ -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 diff --git a/wmake/scripts/have_adios2 b/wmake/scripts/have_adios2 index 7a09259acd2126fbc3cc511195be2ba2ea1b47a8..e293e04cb25273d25a6a6701c016e391cdb2905f 100644 --- a/wmake/scripts/have_adios2 +++ b/wmake/scripts/have_adios2 @@ -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() diff --git a/wmake/scripts/have_petsc b/wmake/scripts/have_petsc index ead138b78e97614c459588415681f127998c7c0c..dd4764666c8ef19ad0fcb0a9434f418f65a03505 100644 --- a/wmake/scripts/have_petsc +++ b/wmake/scripts/have_petsc @@ -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()