clean:
rm -f $(PROGRAM)s.bin $(PROGRAM)n.bin $(PROGRAM)e.bin
rm -fr ssj norm injerr
+ rm -f nve-diff.tmp nve-diff-ranges.tmp
rm -f *~
rm -f *.dot
rm -f *.png
--- /dev/null
+set terminal epslatex input size 2in 1in
+
+set output injectErrorFigA.tex
+plot "normal.txt" with lines, "error.txt" with lines, "nve-diff-ranges.tmp" with steps axes x1y2
+
+set output injectErrorFigB.tex
+plot [10:15] "normal.txt" with lines, "error.txt" with lines, "nve-diff-ranges.tmp" with steps axes x1y2
+
+unset output
echo '0 1' > $X
echo '0 0' >> $X
-#diff normal.txt error.txt | \
-#sed \
-#-e '/^[^0-9]/ d' \
-#-e 's/\(.*\),\(.*\)c.*/\1 0\n\1 1\n\2 1\n\2 0/' \
-#-e 's/\(.*\)c.*/\1 0\n\1 1\n\1 1\n\1 0/' \
-#>> $X
-
sed \
-e '/^[^0-9]/ d' \
-e 's/\(.*\),\(.*\)c.*/\1 0\n\1 1\n\2 1\n\2 0/' \
-e 's/\(.*\)c.*/\1 0\n\1 1\n\1 1\n\1 0/' \
$D >> $X
-if [[ -s $D ]]
-then
+if [[ -s $D ]] ; then
echo 'Normal and Error files differ.'
else
echo 'NO DIFF!'
fi
gnuplot -persist nve.cmds
-
-rm -f $D $X