diff options
author | tlatorre <tlatorre@uchicago.edu> | 2018-07-04 14:31:33 -0400 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2018-07-04 14:31:33 -0400 |
commit | ac9bc989fea328db6db1820d2676cbbf9335584f (patch) | |
tree | 2b11eec051b9ca4f1e0922400735d54cb0d793fe /test.c | |
parent | e61f3f60d73b2c0618f1c87533bfc756ff217ee5 (diff) | |
download | sddm-ac9bc989fea328db6db1820d2676cbbf9335584f.tar.gz sddm-ac9bc989fea328db6db1820d2676cbbf9335584f.tar.bz2 sddm-ac9bc989fea328db6db1820d2676cbbf9335584f.zip |
update solid angle test and fix a bug in the solid angle calculation
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -52,7 +52,7 @@ int test_solid_angle(char *err) solid_angle = get_solid_angle(pos,pmt,n,r); - if (!isclose(solid_angle, solid_angle_results[i].omega, 1e-4, 0)) { + if (!isclose(solid_angle, solid_angle_results[i].omega, 1e-5, 0)) { sprintf(err, "solid angle = %.2f, but expected %.2f", solid_angle, solid_angle_results[i].omega); return 1; } |