mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
CONFIG: adjust handling of PETSc environment (-force option)
This commit is contained in:
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user