mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
paraFoam: added option to open ParaView
when OpenFOAM-format case files are not located
This commit is contained in:
@ -254,6 +254,14 @@ else
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
[ -n "$warn" ] || {
|
||||||
|
echo "Cannot locate OpenFOAM-format case files"
|
||||||
|
echo -n "Would you like to open ParaView anyway <Y|n>:"
|
||||||
|
read open
|
||||||
|
[ "$open" = "" ] || echo $open | grep -iqE "^y" && paraview
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
# only create/remove caseFile if it didn't already exist
|
# only create/remove caseFile if it didn't already exist
|
||||||
[ -e $caseFile ] || {
|
[ -e $caseFile ] || {
|
||||||
trap "rm -f $caseFile 2>/dev/null; exit 0" EXIT TERM INT
|
trap "rm -f $caseFile 2>/dev/null; exit 0" EXIT TERM INT
|
||||||
|
|||||||
Reference in New Issue
Block a user