Commit 3fef1086 authored by Matthieu Schaller's avatar Matthieu Schaller

All tests now run all options before completing

parent 5e822697
......@@ -89,7 +89,7 @@ for i in range(n_lines_to_check):
abs_diff = abs(data1[i,j] - data2[i,j])
sum = abs(data1[i,j] + data2[i,j])
if sum < 1e8: continue
if abs(data1[i,j]) + abs(data2[i,j]) < 1e-7: continue
if sum > 0:
rel_diff = abs(data1[i,j] - data2[i,j]) / sum
else:
......
......@@ -3,10 +3,10 @@ for v in {0..3}
do
for p in {0..2}
do
echo ""
rm brute_force_125_standard.dat swift_dopair_125_standard.dat
./test125cells -n 6 -r 1 -v $v -p $p -f standard
python @srcdir@/difffloat.py brute_force_125_standard.dat swift_dopair_125_standard.dat @srcdir@/tolerance_125.dat 6
echo ""
done
done
......
......@@ -2,10 +2,10 @@
for v in {0..3}
do
echo ""
rm brute_force_27_standard.dat swift_dopair_27_standard.dat
./test27cells -n 6 -r 1 -d 0 -f standard -v $v
python @srcdir@/difffloat.py brute_force_27_standard.dat swift_dopair_27_standard.dat @srcdir@/tolerance_27.dat 6
echo ""
done
exit $?
#!/bin/bash
rm brute_force_27_perturbed.dat swift_dopair_27_perturbed.dat
./test27cells -n 6 -r 1 -d 0.1 -f perturbed
python @srcdir@/difffloat.py brute_force_27_perturbed.dat swift_dopair_27_perturbed.dat @srcdir@/tolerance_27.dat 6
for v in {0..3}
do
echo ""
rm brute_force_27_perturbed.dat swift_dopair_27_perturbed.dat
./test27cells -n 6 -r 1 -d 0.1 -f perturbed -v $v
python @srcdir@/difffloat.py brute_force_27_perturbed.dat swift_dopair_27_perturbed.dat @srcdir@/tolerance_27.dat 6
done
exit $?
# ID pos_x pos_y pos_z v_x v_y v_z h rho div_v S u P c a_x a_y a_z h_dt v_sig dS/dt du/dt
0 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5
0 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5 1e-5
0 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4
0 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment