CONFIG: add sourcing hints for adios2, petsc

This commit is contained in:
Mark Olesen
2019-08-02 12:17:39 +02:00
committed by Andrew Heather
parent 89bc42ddcb
commit e400725675
7 changed files with 42 additions and 9 deletions

View File

@ -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()