test125cellsPerturbed.sh.in 668 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
#!/bin/bash
for v in {0..3}
do
    for p in {0..2}
    do
	echo ""

	rm -f brute_force_125_perturbed.dat swift_dopair_125_perturbed.dat

10
	echo "Running ./test125cells -n 6 -r 1 -d 0.1 -v $v -p $p -f perturbed"
11 12 13 14
	./test125cells -n 6 -r 1 -d 0.1 -v $v -p $p -f perturbed

	if [ -e brute_force_125_perturbed.dat ]
	then
15 16 17 18 19 20 21
	    if python @srcdir@/difffloat.py brute_force_125_perturbed.dat swift_dopair_125_perturbed.dat @srcdir@/tolerance_125_perturbed.dat 6
	    then
		echo "Accuracy test passed"
	    else
		echo "Accuracy test failed"
		exit 1
	    fi
22
	else
23
	    echo "Error Missing test output file"
24 25 26
	    exit 1
        fi

27 28
	echo "------------"

29 30
    done
done
31

32
exit $?