testPeriodicBC.sh.in 654 Bytes
Newer Older
1 2 3 4 5 6
#!/bin/bash

for v in {0..3}
do
    echo ""
	
James Willis's avatar
Typo.  
James Willis committed
7
    rm -f brute_force_periodic_BC_standard.dat swift_periodic_BC_standard.dat
8 9 10 11 12 13

    echo "Running ./testPeriodicBC -n 6 -r 1 -d 0 -f standard -v $v"
    ./testPeriodicBC -n 6 -r 1 -d 0 -f standard -v $v

    if [ -e brute_force_periodic_BC_standard.dat ]
    then
14 15
	if python @srcdir@/difffloat.py brute_force_periodic_BC_standard.dat swift_periodic_BC_standard.dat @srcdir@/tolerance_periodic_BC_normal.dat
  then
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
	    echo "Accuracy test passed"
	else
	    echo "Accuracy test failed"
	    exit 1
	fi
    else
	echo "Error Missing test output file"
	exit 1
    fi

    echo "------------"
    
done

exit $?