cantera/test_problems/ChemEquil_gri_matrix/runtest
Harry Moffat 18152a04b3 Added another test program for the element potential equilibrium
solver.
This test does a matrix of T, pres, and mixture fraction for the
gri30 mechanism. It does a total of 1500 calculation starting from
a bad initial guess.
2006-10-20 21:12:45 +00:00

32 lines
802 B
Bash
Executable file

#!/bin/sh
#
#
temp_success="1"
/bin/rm -f output.txt outputa.txt
#################################################################
#
#################################################################
CANTERA_DATA=${CANTERA_DATA:=../../data/inputs}; export CANTERA_DATA
CANTERA_BIN=${CANTERA_BIN:=../../bin}
./gri_matrix > output.txt
retnStat=$?
if [ $retnStat != "0" ]
then
temp_success="0"
echo "silane_equil returned with bad status, $retnStat, check output"
fi
../../bin/exp3to2.sh output.txt > outputa.txt
diff -w outputa.txt output_blessed.txt > diff_test.out
retnStat=$?
if [ $retnStat = "0" ]
then
echo "successful diff comparison on ChemEquil_gri_matrix test"
else
echo "unsuccessful diff comparison on ChemEquil_gri_matrix test"
echo "FAILED" > csvCode.txt
temp_success="0"
fi