mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: removed bash-dependent test for the existence of gnuplot
This commit is contained in:
@ -1,9 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
type -P gnuplot &>/dev/null || {
|
if ! which gnuplot > /dev/null 2>&1
|
||||||
|
then
|
||||||
echo "gnuplot not found - skipping graph creation" >&2
|
echo "gnuplot not found - skipping graph creation" >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
fi
|
||||||
|
|
||||||
gnuplot<<EOF
|
gnuplot<<EOF
|
||||||
set terminal postscript eps color enhanced "Helveicta,20"
|
set terminal postscript eps color enhanced "Helveicta,20"
|
||||||
|
|||||||
@ -1,9 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
type -P gnuplot &>/dev/null || {
|
if ! which gnuplot > /dev/null 2>&1
|
||||||
|
then
|
||||||
echo "gnuplot not found - skipping graph creation" >&2
|
echo "gnuplot not found - skipping graph creation" >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
fi
|
||||||
|
|
||||||
gnuplot<<EOF
|
gnuplot<<EOF
|
||||||
set terminal postscript eps color enhanced "Helvetica,20"
|
set terminal postscript eps color enhanced "Helvetica,20"
|
||||||
|
|||||||
@ -1,9 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
type -P gnuplot &>/dev/null || {
|
if ! which gnuplot > /dev/null 2>&1
|
||||||
|
then
|
||||||
echo "gnuplot not found - skipping graph creation" >&2
|
echo "gnuplot not found - skipping graph creation" >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
fi
|
||||||
|
|
||||||
gnuplot<<EOF
|
gnuplot<<EOF
|
||||||
set terminal postscript eps color enhanced "Helvetica,20"
|
set terminal postscript eps color enhanced "Helvetica,20"
|
||||||
|
|||||||
@ -1,9 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
type -P gnuplot &>/dev/null || {
|
if ! which gnuplot > /dev/null 2>&1
|
||||||
|
then
|
||||||
echo "gnuplot not found - skipping graph creation" >&2
|
echo "gnuplot not found - skipping graph creation" >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
fi
|
||||||
|
|
||||||
gnuplot<<EOF
|
gnuplot<<EOF
|
||||||
set terminal postscript eps color enhanced "Helvetica,20"
|
set terminal postscript eps color enhanced "Helvetica,20"
|
||||||
|
|||||||
@ -78,10 +78,11 @@ EOF
|
|||||||
|
|
||||||
|
|
||||||
# test if gnuplot exists on the system
|
# test if gnuplot exists on the system
|
||||||
type -P gnuplot &>/dev/null || {
|
if ! which gnuplot > /dev/null 2>&1
|
||||||
|
then
|
||||||
echo "gnuplot not found - skipping graph creation" >&2
|
echo "gnuplot not found - skipping graph creation" >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
fi
|
||||||
|
|
||||||
SETSDIR="../postProcessing/sets"
|
SETSDIR="../postProcessing/sets"
|
||||||
|
|
||||||
|
|||||||
@ -41,10 +41,12 @@ done
|
|||||||
|
|
||||||
# create validation plot
|
# create validation plot
|
||||||
# test if gnuplot exists on the system
|
# test if gnuplot exists on the system
|
||||||
type -P gnuplot &>/dev/null || {
|
if ! which gnuplot > /dev/null 2>&1
|
||||||
|
then
|
||||||
echo "gnuplot not found - skipping graph creation" >&2
|
echo "gnuplot not found - skipping graph creation" >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
fi
|
||||||
|
|
||||||
graphName="OF_vs_ANAYTICAL.eps"
|
graphName="OF_vs_ANAYTICAL.eps"
|
||||||
|
|
||||||
echo "Creating graph of u+ vs y+ to $graphName"
|
echo "Creating graph of u+ vs y+ to $graphName"
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
cd ${0%/*} || exit 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user