Fixed an error in IdealMolalSoln -> density wasn't beeing recalculated.
Updated the test problem with the fix.
Worked CANTERA_DEBUG_MODE into the Makefiles. It wasn't being used.
Split the multiproblem DH_graph_1 test into multiple directories, one per test
Worked on getting all of the test problems to have the same look, feel, and printout.
50 lines
1.2 KiB
Bash
Executable file
50 lines
1.2 KiB
Bash
Executable file
#!/bin/sh
|
|
#
|
|
#
|
|
temp_success="1"
|
|
|
|
##########################################################################
|
|
prog=HMW_test_3
|
|
if test ! -x $prog ; then
|
|
echo $prog ' does not exist'
|
|
exit -1
|
|
fi
|
|
##########################################################################
|
|
/bin/rm -f output.txt outputa.txt
|
|
/bin/rm -f test.out test.diff output.txt diff_test.out
|
|
/bin/rm -f CheckDebug.txt output_bc.txt
|
|
|
|
#################################################################
|
|
#
|
|
CANTERA_DATA=${CANTERA_DATA:=../../../data/inputs}; export CANTERA_DATA
|
|
CANTERA_BIN=${CANTERA_BIN:=../../../bin}
|
|
|
|
#################################################################
|
|
|
|
$prog > output.txt
|
|
retnStat=$?
|
|
if [ $retnStat != "0" ]
|
|
then
|
|
temp_success="0"
|
|
echo "$prog returned with bad status, $retnStat, check output"
|
|
fi
|
|
|
|
$CANTERA_BIN/exp3to2.sh output.txt > outputa.txt
|
|
if [ -f CheckDebug.txt ]
|
|
then
|
|
cp output_blessed.txt output_bc.txt
|
|
else
|
|
cp output_noD_blessed.txt output_bc.txt
|
|
fi
|
|
|
|
diff -w outputa.txt output_bc.txt > diff_test.out
|
|
retnStat=$?
|
|
if [ $retnStat = "0" ]
|
|
then
|
|
echo "successful diff comparison on $prog test"
|
|
else
|
|
echo "unsuccessful diff comparison on $prog test"
|
|
echo "FAILED" > csvCode.txt
|
|
temp_success="0"
|
|
fi
|
|
|