Skip to content
Snippets Groups Projects
Commit 37cde0ce authored by Chris Greenshields's avatar Chris Greenshields
Browse files

paraFoam: added option to open ParaView

when OpenFOAM-format case files are not located
parent 407dccef
Branches
Tags
No related merge requests found
......@@ -254,6 +254,14 @@ else
;;
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
[ -e $caseFile ] || {
trap "rm -f $caseFile 2>/dev/null; exit 0" EXIT TERM INT
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment