CONFIG: adjust handling of PETSc environment (-force option)

This commit is contained in:
Mark Olesen
2018-11-06 09:01:40 +01:00
parent f5baa9a583
commit 2fc1a1692b
2 changed files with 20 additions and 2 deletions

View File

@ -43,6 +43,16 @@ then
unset petsc_version
elif [ "$1" = "-force" ]
then
# Forced command-line sourcing
if output="$($WM_PROJECT_DIR/bin/tools/lib-dir -sh $PETSC_ARCH_PATH 2>/dev/null)"
then
eval "$output"
fi
unset petsc_version output
fi
#------------------------------------------------------------------------------