29 lines
653 B
Bash
Executable file
29 lines
653 B
Bash
Executable file
#!/bin/sh
|
|
# $Id$
|
|
#
|
|
BINDIR=@buildbin@
|
|
CK2CTI=$BINDIR/ck2cti
|
|
$CK2CTI -i ./gri30.inp -id gri30 -tr ./gri30_tran.dat > gri30.cti
|
|
#
|
|
# strip out variably dated stuff
|
|
#
|
|
cat gri30.cti | sed '1,5s/^#.*$/#/' > gri30a.cti
|
|
#
|
|
# Change all 3 character exponent expressions starting with 0
|
|
# into 2 character exponent expressions
|
|
# (MSVC++ defaults to 3, and I can't figure out how to change
|
|
# this behavior).
|
|
#
|
|
../../bin/exp3to2.sh gri30a.cti > gri30b.cti
|
|
#
|
|
#
|
|
diff gri30b.cti gri30a_blessed.cti > diff_test.out
|
|
retnStat=$?
|
|
#
|
|
if [ $retnStat = "0" ]
|
|
then
|
|
echo "successful diff comparison on ck2cti test"
|
|
else
|
|
echo "unsuccessful diff comparison on ck2cti test"
|
|
fi
|
|
|