bmad-sim / bmad-ecosystem

Bmad simulation ecosystem for simulating high energy storage rings.
https://www.classe.cornell.edu/bmad/
12 stars 15 forks source link

Multipole test failing on Mac #616

Closed DavidSagan closed 11 months ago

DavidSagan commented 11 months ago

Test results:

Starting testing in subdirectory: multipole_test Running program: ../../production/bin/multipole_test

 Regression test failed for: "KT-12-EE"   ABS   1E-12
 Regression test failed for datum number: 2
    Data from "output.now":     ['0.0000E+00', '2.3842E-07', '0.0000E+00', '5.5511E-17']
    Data from "output.correct": ['0.0000E+00', '1.7764E-15', '0.0000E+00', '5.5511E-17']
    Diff: 2.384199982236e-07  Diff/Val: 1.9999999701971316

 Regression test failed for: "KT-22-EE"   ABS   1E-12
 Regression test failed for datum number: 2
    Data from "output.now":     ['0.0000E+00', '2.3842E-07', '0.0000E+00', '0.0000E+00']
    Data from "output.correct": ['0.0000E+00', '1.7764E-15', '0.0000E+00', '0.0000E+00']
    Diff: 2.384199982236e-07  Diff/Val: 1.9999999701971316

 Number of tests:        141
 Number of failed tests: 2
 Duration of test (sec): 0.21166014671325684
 Maximum allowed failed tests: 0
 Grade for tests in subdirectory multipole_test: FAILED!
DavidSagan commented 11 months ago

Problem was roundoff error in the test itself. Fixed.