Skip to content
Snippets Groups Projects
Commit 735769fb authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Translate script input into floats...

parent 63e3f2ab
Branches
Tags
2 merge requests!136Master,!133Updated vectorisation tests
......@@ -31,8 +31,8 @@ file1 = sys.argv[1]
file2 = sys.argv[2]
if len(sys.argv) >= 5:
abs_tol = sys.argv[3]
rel_tol = sys.argv[4]
abs_tol = float(sys.argv[3])
rel_tol = float(sys.argv[4])
print "Absolute difference tolerance:", abs_tol
print "Relative difference tolerance:", rel_tol
......@@ -77,7 +77,7 @@ for i in range(n_lines):
if error:
sys.exit(1)
exit(1)
else:
print "No differences found"
sys.exit(0)
exit(0)
#!/bin/bash
rm brute_force.dat swift_dopair.dat
./testPair -p 6 -r 1
python difffloat.py brute_force.dat swift_dopair.dat 1e-5 2e-6
exit $?
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment