Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a calculator to integrate range from energy loss #1544

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Add test checking calculated values against imported range

9d389b1
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Draft

Add a calculator to integrate range from energy loss #1544

Add test checking calculated values against imported range
9d389b1
Select commit
Loading
Failed to load commit list.
GitHub Actions / JUnit Test Report failed Dec 10, 2024 in 0s

2428 tests run, 2348 passed, 54 skipped, 26 failed.

Annotations

Check failure on line 1 in MockAlongStepTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

MockAlongStepTest.basic

/home/runner/work/celeritas/celeritas/test/celeritas/global/AlongStep.test.cc:217
Value of: result.eloss
  Actual: 0.29332287712287647
Expected: 0.29312
Which is: 0.29311999999999999
(Relative error 0.00069212992247706391 exceeds tolerance 9.9999999999999998e-13)
Raw output
/home/runner/work/celeritas/celeritas/test/celeritas/global/AlongStep.test.cc:217
Value of: result.eloss
  Actual: 0.29332287712287647
Expected: 0.29312
Which is: 0.29311999999999999
(Relative error 0.00069212992247706391 exceeds tolerance 9.9999999999999998e-13)

Check failure on line 1 in MockAlongStepFieldTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

MockAlongStepFieldTest.basic

/home/runner/work/celeritas/celeritas/test/celeritas/global/AlongStep.test.cc:263
Value of: result.eloss
  Actual: 0.087685148514851444
Expected: 0.0872
Which is: 0.0872
(Relative error 0.0055636297574706874 exceeds tolerance 9.9999999999999998e-13)
Raw output
/home/runner/work/celeritas/celeritas/test/celeritas/global/AlongStep.test.cc:263
Value of: result.eloss
  Actual: 0.087685148514851444
Expected: 0.0872
Which is: 0.0872
(Relative error 0.0055636297574706874 exceeds tolerance 9.9999999999999998e-13)

Check failure on line 1 in RangeGridCalculatorTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

RangeGridCalculatorTest.all

/home/runner/work/celeritas/celeritas/test/celeritas/grid/RangeGridCalculator.test.cc:114
Values in: range
 Expected: expected_range
84 of 85 elements differ (truncating by removing all but the first and last 20)
by 9.9999999999999998e-13 relative error or 1e-14 absolute error
 i      expected_range              range         Difference
 1 2.84408954171739e-07 2.84367115784543e-07 -0.000147106434526391
 2 3.49102977951787e-07 3.4898675724564e-07 -0.000332912388282654
 3 4.41948426764455e-07 4.41829400634089e-07 -0.000269321312528819
 4   5.81556823586e-07 5.81583749413484e-07 4.62995641898896e-05
 5 8.05901114436151e-07 8.05618095897364e-07 -0.000351182711771059
 6 1.17454066145004e-06 1.17385979377205e-06 -0.000579688469150873
 7 1.77745754547844e-06 1.77710858237786e-06 -0.000196327108610466
 8 2.76204861844086e-06 2.76114652605785e-06 -0.000326602644497444
 9 4.35667846840664e-06 4.35661196186093e-06 -1.52654243813496e-05
10 6.97442596899499e-06 6.97535072966277e-06 0.000132593086785113
11 1.13782785072204e-05 1.13761304605417e-05 -0.0001887848568061
12 1.88891639349819e-05 1.88869366374979e-05 -0.000117914032175109
13 3.18605823919917e-05 3.1854651658124e-05 -0.000186146436206332
14 5.44434027717438e-05 5.44359750748996e-05 -0.000136429695170806
15 9.40070870338402e-05 9.39946099063803e-05 -0.000132725391814388
16 0.000163563219143859 0.000163547778176437 -9.44036654632926e-05
17 0.000286037892868613 0.000286018359869808 -6.82881509472399e-05
18 0.000501482878278527 0.000501460631290358 -4.4362408233984e-05
19 0.00087893144157381 0.000878919378022394 -1.37252473231913e-05
20 0.00153525772246054 0.00153528328623504 1.66511290721393e-05
65    16968.4521672013    16968.4520913671 -4.46912929402434e-09
66    23577.5493691843    23577.5492933684 -3.21559729538315e-09
67    32760.8601547275    32760.8600789263 -2.3137739479617e-09
68    45521.0291157603    45521.0290399687 -1.66497910392964e-09
69    63251.2263953397    63251.2263195555 -1.19814592248905e-09
70    87887.2556302274    87887.2555544487 -8.62226161855839e-10
71    122118.907251755    122118.907175981 -6.20495547473425e-10
72    169683.632945113     169683.63286934 -4.46553967054342e-10
73    235774.604987336    235774.604911567 -3.21362744514425e-10
74    327607.712858899    327607.712783132 -2.31274060430519e-10
75    455209.402480828     455209.40240506 -1.66446559941911e-10
76    632511.375284974    632511.375209209 -1.19784886559468e-10
77    878871.667639863    878871.667564101 -8.62037615918663e-11
78    1221188.18385947    1221188.18378371 -6.20400907780159e-11
79    1696835.44079615    1696835.44072038 -4.46514237160131e-11
80    2357745.16122063    2357745.16114487 -3.21335091806354e-11
81    3276076.23993788    3276076.23986212 -2.31253157523226e-11
82    4552093.13615831    4552093.13608254 -1.66443907163135e-11
83    6325112.86420063    6325112.86412491 -1.19706312945347e-11
84    8788715.78775012    8788715.78767438 -8.61752914099733e-12
Raw output
/home/runner/work/celeritas/celeritas/test/celeritas/grid/RangeGridCalculator.test.cc:114
Values in: range
 Expected: expected_range
84 of 85 elements differ (truncating by removing all but the first and last 20)
by 9.9999999999999998e-13 relative error or 1e-14 absolute error
 i      expected_range              range         Difference
 1 2.84408954171739e-07 2.84367115784543e-07 -0.000147106434526391
 2 3.49102977951787e-07 3.4898675724564e-07 -0.000332912388282654
 3 4.41948426764455e-07 4.41829400634089e-07 -0.000269321312528819
 4   5.81556823586e-07 5.81583749413484e-07 4.62995641898896e-05
 5 8.05901114436151e-07 8.05618095897364e-07 -0.000351182711771059
 6 1.17454066145004e-06 1.17385979377205e-06 -0.000579688469150873
 7 1.77745754547844e-06 1.77710858237786e-06 -0.000196327108610466
 8 2.76204861844086e-06 2.76114652605785e-06 -0.000326602644497444
 9 4.35667846840664e-06 4.35661196186093e-06 -1.52654243813496e-05
10 6.97442596899499e-06 6.97535072966277e-06 0.000132593086785113
11 1.13782785072204e-05 1.13761304605417e-05 -0.0001887848568061
12 1.88891639349819e-05 1.88869366374979e-05 -0.000117914032175109
13 3.18605823919917e-05 3.1854651658124e-05 -0.000186146436206332
14 5.44434027717438e-05 5.44359750748996e-05 -0.000136429695170806
15 9.40070870338402e-05 9.39946099063803e-05 -0.000132725391814388
16 0.000163563219143859 0.000163547778176437 -9.44036654632926e-05
17 0.000286037892868613 0.000286018359869808 -6.82881509472399e-05
18 0.000501482878278527 0.000501460631290358 -4.4362408233984e-05
19 0.00087893144157381 0.000878919378022394 -1.37252473231913e-05
20 0.00153525772246054 0.00153528328623504 1.66511290721393e-05
65    16968.4521672013    16968.4520913671 -4.46912929402434e-09
66    23577.5493691843    23577.5492933684 -3.21559729538315e-09
67    32760.8601547275    32760.8600789263 -2.3137739479617e-09
68    45521.0291157603    45521.0290399687 -1.66497910392964e-09
69    63251.2263953397    63251.2263195555 -1.19814592248905e-09
70    87887.2556302274    87887.2555544487 -8.62226161855839e-10
71    122118.907251755    122118.907175981 -6.20495547473425e-10
72    169683.632945113     169683.63286934 -4.46553967054342e-10
73    235774.604987336    235774.604911567 -3.21362744514425e-10
74    327607.712858899    327607.712783132 -2.31274060430519e-10
75    455209.402480828     455209.40240506 -1.66446559941911e-10
76    632511.375284974    632511.375209209 -1.19784886559468e-10
77    878871.667639863    878871.667564101 -8.62037615918663e-11
78    1221188.18385947    1221188.18378371 -6.20400907780159e-11
79    1696835.44079615    1696835.44072038 -4.46514237160131e-11
80    2357745.16122063    2357745.16114487 -3.21335091806354e-11
81    3276076.23993788    3276076.23986212 -2.31253157523226e-11
82    4552093.13615831    4552093.13608254 -1.66443907163135e-11
83    6325112.86420063    6325112.86412491 -1.19706312945347e-11
84    8788715.78775012    8788715.78767438 -8.61752914099733e-12

Check failure on line 1 in PhysicsParamsTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

PhysicsParamsTest.output

/home/runner/work/celeritas/celeritas/test/celeritas/phys/Physics.test.cc:146
JSON objects differ:
  value in .["sizes"]["reals"]: expected 257, but got 269
/*** ACTUAL ***/
R"json({"_category":"internal","_label":"physics","models":{"label":["mock-model-1","mock-model-2","mock-model-3","mock-model-4","mock-model-5","mock-model-6","mock-model-7","mock-model-8","mock-model-9","mock-model-10","mock-model-11"],"process_id":[0,0,1,2,2,2,3,3,4,4,5]},"options":{"fixed_step_limiter":0.0,"linear_loss_limit":0.01,"lowest_electron_energy":[0.001,"MeV"],"max_step_over_range":0.2,"min_eprime_over_e":0.8,"min_range":0.1,"spline_eloss_order":1},"processes":{"label":["scattering","absorption","purrs","hisses","meows","barks"]},"sizes":{"integral_xs":8,"model_groups":8,"model_ids":11,"process_groups":5,"process_ids":8,"reals":269,"value_grid_ids":89,"value_grids":89,"value_tables":29}})json"
/******/
Raw output
/home/runner/work/celeritas/celeritas/test/celeritas/phys/Physics.test.cc:146
JSON objects differ:
  value in .["sizes"]["reals"]: expected 257, but got 269
/*** ACTUAL ***/
R"json({"_category":"internal","_label":"physics","models":{"label":["mock-model-1","mock-model-2","mock-model-3","mock-model-4","mock-model-5","mock-model-6","mock-model-7","mock-model-8","mock-model-9","mock-model-10","mock-model-11"],"process_id":[0,0,1,2,2,2,3,3,4,4,5]},"options":{"fixed_step_limiter":0.0,"linear_loss_limit":0.01,"lowest_electron_energy":[0.001,"MeV"],"max_step_over_range":0.2,"min_eprime_over_e":0.8,"min_range":0.1,"spline_eloss_order":1},"processes":{"label":["scattering","absorption","purrs","hisses","meows","barks"]},"sizes":{"integral_xs":8,"model_groups":8,"model_ids":11,"process_groups":5,"process_ids":8,"reals":269,"value_grid_ids":89,"value_grids":89,"value_tables":29}})json"
/******/

Check failure on line 1 in PhysicsTrackViewHostTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

PhysicsTrackViewHostTest.calc_eloss_range

/home/runner/work/celeritas/celeritas/test/celeritas/phys/Physics.test.cc:523
Values in: range
 Expected: expected_range
8 of 8 elements differ
by 9.9999999999999998e-13 relative error or 1e-14 absolute error
i      expected_range              range         Difference
0 5.2704627669473e-05 0.000105409255338946                   1
1   0.016666666666667  0.0183333333333334  0.0999999999999791
2     1.6666666666667    1.66833333333334 0.000999999999983483
3     166.66666666667    166.668333333334 9.99999998481351e-06
4 4.5175395145263e-05 9.03507902905252e-05   0.999999999999981
5   0.014285714285714  0.0157142857142857   0.100000000000021
6     1.4285714285714                1.43 0.00100000000002234
7     142.85714285714    142.858571428572 1.00000000244054e-05
Raw output
/home/runner/work/celeritas/celeritas/test/celeritas/phys/Physics.test.cc:523
Values in: range
 Expected: expected_range
8 of 8 elements differ
by 9.9999999999999998e-13 relative error or 1e-14 absolute error
i      expected_range              range         Difference
0 5.2704627669473e-05 0.000105409255338946                   1
1   0.016666666666667  0.0183333333333334  0.0999999999999791
2     1.6666666666667    1.66833333333334 0.000999999999983483
3     166.66666666667    166.668333333334 9.99999998481351e-06
4 4.5175395145263e-05 9.03507902905252e-05   0.999999999999981
5   0.014285714285714  0.0157142857142857   0.100000000000021
6     1.4285714285714                1.43 0.00100000000002234
7     142.85714285714    142.858571428572 1.00000000244054e-05

Check failure on line 1 in PhysicsTrackViewHostTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

PhysicsTrackViewHostTest.cuda_surrogate

/home/runner/work/celeritas/celeritas/test/celeritas/phys/Physics.test.cc:648
Values in: step
 Expected: expected_step
5 of 10 elements differ
by 9.9999999999999998e-13 relative error or 1e-14 absolute error
i       expected_step               step         Difference
5  1.428571428571e-05 2.85714285714286e-05     1.0000000000006
6  0.0001428571428571 0.000285714285714286     1.0000000000006
7     0.1325714285714   0.132655944055944 0.000637509042899377
8      3.016582857143    3.01661143417138 9.4733112724959e-06
9      3.016582857143    3.01661143417138 9.4733112724959e-06
Raw output
/home/runner/work/celeritas/celeritas/test/celeritas/phys/Physics.test.cc:648
Values in: step
 Expected: expected_step
5 of 10 elements differ
by 9.9999999999999998e-13 relative error or 1e-14 absolute error
i       expected_step               step         Difference
5  1.428571428571e-05 2.85714285714286e-05     1.0000000000006
6  0.0001428571428571 0.000285714285714286     1.0000000000006
7     0.1325714285714   0.132655944055944 0.000637509042899377
8      3.016582857143    3.01661143417138 9.4733112724959e-06
9      3.016582857143    3.01661143417138 9.4733112724959e-06

Check failure on line 1 in PhysicsStepUtilsTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

PhysicsStepUtilsTest.calc_physics_step_limit

/home/runner/work/celeritas/celeritas/test/celeritas/phys/PhysicsStepUtils.test.cc:143
Value of: to_cm(step.step)
  Actual: 0.48856714661867284
Expected: 0.48853333333333326
Which is: 0.48853333333333326
(Relative error 6.9213875558635959e-05 exceeds tolerance 9.9999999999999998e-13)
Raw output
/home/runner/work/celeritas/celeritas/test/celeritas/phys/PhysicsStepUtils.test.cc:143
Value of: to_cm(step.step)
  Actual: 0.48856714661867284
Expected: 0.48853333333333326
Which is: 0.48853333333333326
(Relative error 6.9213875558635959e-05 exceeds tolerance 9.9999999999999998e-13)

Check failure on line 1 in PhysicsStepUtilsTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

PhysicsStepUtilsTest.calc_mean_energy_loss

/home/runner/work/celeritas/celeritas/test/celeritas/phys/PhysicsStepUtils.test.cc:278
Value of: calc_eloss(phys, step)
  Actual: 0.00099749999999999969
Expected: 1e-3
Which is: 0.001
(Relative error -0.0025000000000003318 exceeds tolerance 9.9999999999999998e-13)
Raw output
/home/runner/work/celeritas/celeritas/test/celeritas/phys/PhysicsStepUtils.test.cc:278
Value of: calc_eloss(phys, step)
  Actual: 0.00099749999999999969
Expected: 1e-3
Which is: 0.001
(Relative error -0.0025000000000003318 exceeds tolerance 9.9999999999999998e-13)

Check failure on line 1 in PhysicsStepUtilsTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

PhysicsStepUtilsTest.select_discrete_interaction

/home/runner/work/celeritas/celeritas/test/celeritas/phys/PhysicsStepUtils.test.cc:329
Value of: to_cm(step.step)
  Actual: 0.48856714661867284
Expected: 0.48853333333333326
Which is: 0.48853333333333326
(Relative error 6.9213875558635959e-05 exceeds tolerance 9.9999999999999998e-13)
Raw output
/home/runner/work/celeritas/celeritas/test/celeritas/phys/PhysicsStepUtils.test.cc:329
Value of: to_cm(step.step)
  Actual: 0.48856714661867284
Expected: 0.48853333333333326
Which is: 0.48853333333333326
(Relative error 6.9213875558635959e-05 exceeds tolerance 9.9999999999999998e-13)

Check failure on line 1 in StepLimiterTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

StepLimiterTest.calc_physics_step_limit

/home/runner/work/celeritas/celeritas/test/celeritas/phys/PhysicsStepUtils.test.cc:453
Value of: to_cm(step.step)
  Actual: 0.00033333333333333343
Expected: 0.00016666666666666663
Which is: 0.00016666666666666663
(Relative error 1.0000000000000009 exceeds tolerance 9.9999999999999998e-13)
Raw output
/home/runner/work/celeritas/celeritas/test/celeritas/phys/PhysicsStepUtils.test.cc:453
Value of: to_cm(step.step)
  Actual: 0.00033333333333333343
Expected: 0.00016666666666666663
Which is: 0.00016666666666666663
(Relative error 1.0000000000000009 exceeds tolerance 9.9999999999999998e-13)

Check failure on line 1 in SplinePhysicsStepUtilsTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

SplinePhysicsStepUtilsTest.calc_mean_energy_loss

/home/runner/work/celeritas/celeritas/test/celeritas/phys/PhysicsStepUtils.test.cc:531
Value of: calc_eloss(phys, step)
  Actual: 0.00099749999999999969
Expected: 1e-3
Which is: 0.001
(Relative error -0.0025000000000003318 exceeds tolerance 9.9999999999999998e-13)
Raw output
/home/runner/work/celeritas/celeritas/test/celeritas/phys/PhysicsStepUtils.test.cc:531
Value of: calc_eloss(phys, step)
  Actual: 0.00099749999999999969
Expected: 1e-3
Which is: 0.001
(Relative error -0.0025000000000003318 exceeds tolerance 9.9999999999999998e-13)

Check failure on line 1 in celeritas/global/AlongStep

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

celeritas/global/AlongStep

Failed

Check failure on line 1 in celeritas/grid/RangeGridCalculator

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

celeritas/grid/RangeGridCalculator

Failed

Check failure on line 1 in celeritas/phys/Physics

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

celeritas/phys/Physics

Failed

Check failure on line 1 in celeritas/phys/PhysicsStepUtils

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

celeritas/phys/PhysicsStepUtils

Failed

Check failure on line 209 in D:\a\celeritas\celeritas\test\celeritas\global\AlongStep.test.cc

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

D:\a\celeritas\celeritas\test\celeritas\global\AlongStep.test.cc.basic

D:\a\celeritas\celeritas\test\celeritas\global\AlongStep.test.cc:217
Value of: result.eloss
  Actual: 0.29332287712287647
Expected: 0.29312
Which is: 0.29311999999999999
(Relative error 0.00069212992247706391 exceeds tolerance 9.9999999999999998e-13)
Raw output
D:\a\celeritas\celeritas\test\celeritas\global\AlongStep.test.cc:217
Value of: result.eloss
  Actual: 0.29332287712287647
Expected: 0.29312
Which is: 0.29311999999999999
(Relative error 0.00069212992247706391 exceeds tolerance 9.9999999999999998e-13)

Check failure on line 255 in D:\a\celeritas\celeritas\test\celeritas\global\AlongStep.test.cc

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

D:\a\celeritas\celeritas\test\celeritas\global\AlongStep.test.cc.basic

D:\a\celeritas\celeritas\test\celeritas\global\AlongStep.test.cc:263
Value of: result.eloss
  Actual: 0.087685148514851444
Expected: 0.0872
Which is: 0.0872
(Relative error 0.0055636297574706874 exceeds tolerance 9.9999999999999998e-13)
Raw output
D:\a\celeritas\celeritas\test\celeritas\global\AlongStep.test.cc:263
Value of: result.eloss
  Actual: 0.087685148514851444
Expected: 0.0872
Which is: 0.0872
(Relative error 0.0055636297574706874 exceeds tolerance 9.9999999999999998e-13)

Check failure on line 77 in D:\a\celeritas\celeritas\test\celeritas\grid\RangeGridCalculator.test.cc

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

D:\a\celeritas\celeritas\test\celeritas\grid\RangeGridCalculator.test.cc.all

D:\a\celeritas\celeritas\test\celeritas\grid\RangeGridCalculator.test.cc:114
Values in: range
 Expected: expected_range
84 of 85 elements differ (truncating by removing all but the first and last 20)
by 9.9999999999999998e-13 relative error or 1e-14 absolute error
 i      expected_range              range         Difference
 1 2.84408954171739e-07 2.84367115784543e-07 -0.000147106434526391
 2 3.49102977951787e-07 3.4898675724564e-07 -0.000332912388282654
 3 4.41948426764455e-07 4.41829400634089e-07 -0.000269321312528819
 4   5.81556823586e-07 5.81583749413484e-07 4.62995641898896e-05
 5 8.05901114436151e-07 8.05618095897364e-07 -0.000351182711771059
 6 1.17454066145004e-06 1.17385979377205e-06 -0.000579688469150873
 7 1.77745754547844e-06 1.77710858237786e-06 -0.000196327108610466
 8 2.76204861844086e-06 2.76114652605785e-06 -0.000326602644497444
 9 4.35667846840664e-06 4.35661196186093e-06 -1.52654243813496e-05
10 6.97442596899499e-06 6.97535072966277e-06 0.000132593086785113
11 1.13782785072204e-05 1.13761304605417e-05 -0.0001887848568061
12 1.88891639349819e-05 1.88869366374979e-05 -0.000117914032175109
13 3.18605823919917e-05 3.1854651658124e-05 -0.000186146436206332
14 5.44434027717438e-05 5.44359750748996e-05 -0.000136429695170806
15 9.40070870338402e-05 9.39946099063803e-05 -0.000132725391814388
16 0.000163563219143859 0.000163547778176437 -9.44036654632926e-05
17 0.000286037892868613 0.000286018359869808 -6.82881509472399e-05
18 0.000501482878278527 0.000501460631290358 -4.4362408233984e-05
19 0.00087893144157381 0.000878919378022394 -1.37252473231913e-05
20 0.00153525772246054 0.00153528328623504 1.66511290721393e-05
65    16968.4521672013    16968.4520913671 -4.46912929402434e-09
66    23577.5493691843    23577.5492933684 -3.21559729538315e-09
67    32760.8601547275    32760.8600789263 -2.3137739479617e-09
68    45521.0291157603    45521.0290399687 -1.66497910392964e-09
69    63251.2263953397    63251.2263195555 -1.19814592248905e-09
70    87887.2556302274    87887.2555544487 -8.62226161855839e-10
71    122118.907251755    122118.907175981 -6.20495547473425e-10
72    169683.632945113     169683.63286934 -4.46553967054342e-10
73    235774.604987336    235774.604911567 -3.21362744514425e-10
74    327607.712858899    327607.712783132 -2.31274060430519e-10
75    455209.402480828     455209.40240506 -1.66446559941911e-10
76    632511.375284974    632511.375209209 -1.19784886559468e-10
77    878871.667639863    878871.667564101 -8.62037615918663e-11
78    1221188.18385947    1221188.18378371 -6.20400907780159e-11
79    1696835.44079615    1696835.44072038 -4.46514237160131e-11
80    2357745.16122063    2357745.16114487 -3.21335091806354e-11
81    3276076.23993788    3276076.23986212 -2.31253157523226e-11
82    4552093.13615831    4552093.13608254 -1.66443907163135e-11
83    6325112.86420063    6325112.86412491 -1.19706312945347e-11
84    8788715.78775012    8788715.78767438 -8.61752914099733e-12
Raw output
D:\a\celeritas\celeritas\test\celeritas\grid\RangeGridCalculator.test.cc:114
Values in: range
 Expected: expected_range
84 of 85 elements differ (truncating by removing all but the first and last 20)
by 9.9999999999999998e-13 relative error or 1e-14 absolute error
 i      expected_range              range         Difference
 1 2.84408954171739e-07 2.84367115784543e-07 -0.000147106434526391
 2 3.49102977951787e-07 3.4898675724564e-07 -0.000332912388282654
 3 4.41948426764455e-07 4.41829400634089e-07 -0.000269321312528819
 4   5.81556823586e-07 5.81583749413484e-07 4.62995641898896e-05
 5 8.05901114436151e-07 8.05618095897364e-07 -0.000351182711771059
 6 1.17454066145004e-06 1.17385979377205e-06 -0.000579688469150873
 7 1.77745754547844e-06 1.77710858237786e-06 -0.000196327108610466
 8 2.76204861844086e-06 2.76114652605785e-06 -0.000326602644497444
 9 4.35667846840664e-06 4.35661196186093e-06 -1.52654243813496e-05
10 6.97442596899499e-06 6.97535072966277e-06 0.000132593086785113
11 1.13782785072204e-05 1.13761304605417e-05 -0.0001887848568061
12 1.88891639349819e-05 1.88869366374979e-05 -0.000117914032175109
13 3.18605823919917e-05 3.1854651658124e-05 -0.000186146436206332
14 5.44434027717438e-05 5.44359750748996e-05 -0.000136429695170806
15 9.40070870338402e-05 9.39946099063803e-05 -0.000132725391814388
16 0.000163563219143859 0.000163547778176437 -9.44036654632926e-05
17 0.000286037892868613 0.000286018359869808 -6.82881509472399e-05
18 0.000501482878278527 0.000501460631290358 -4.4362408233984e-05
19 0.00087893144157381 0.000878919378022394 -1.37252473231913e-05
20 0.00153525772246054 0.00153528328623504 1.66511290721393e-05
65    16968.4521672013    16968.4520913671 -4.46912929402434e-09
66    23577.5493691843    23577.5492933684 -3.21559729538315e-09
67    32760.8601547275    32760.8600789263 -2.3137739479617e-09
68    45521.0291157603    45521.0290399687 -1.66497910392964e-09
69    63251.2263953397    63251.2263195555 -1.19814592248905e-09
70    87887.2556302274    87887.2555544487 -8.62226161855839e-10
71    122118.907251755    122118.907175981 -6.20495547473425e-10
72    169683.632945113     169683.63286934 -4.46553967054342e-10
73    235774.604987336    235774.604911567 -3.21362744514425e-10
74    327607.712858899    327607.712783132 -2.31274060430519e-10
75    455209.402480828     455209.40240506 -1.66446559941911e-10
76    632511.375284974    632511.375209209 -1.19784886559468e-10
77    878871.667639863    878871.667564101 -8.62037615918663e-11
78    1221188.18385947    1221188.18378371 -6.20400907780159e-11
79    1696835.44079615    1696835.44072038 -4.46514237160131e-11
80    2357745.16122063    2357745.16114487 -3.21335091806354e-11
81    3276076.23993788    3276076.23986212 -2.31253157523226e-11
82    4552093.13615831    4552093.13608254 -1.66443907163135e-11
83    6325112.86420063    6325112.86412491 -1.19706312945347e-11
84    8788715.78775012    8788715.78767438 -8.61752914099733e-12

Check failure on line 135 in D:\a\celeritas\celeritas\test\celeritas\phys\Physics.test.cc

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

D:\a\celeritas\celeritas\test\celeritas\phys\Physics.test.cc.output

D:\a\celeritas\celeritas\test\celeritas\phys\Physics.test.cc:146
JSON objects differ:
  value in .["sizes"]["reals"]: expected 257, but got 269
/*** ACTUAL ***/
R"json({"_category":"internal","_label":"physics","models":{"label":["mock-model-1","mock-model-2","mock-model-3","mock-model-4","mock-model-5","mock-model-6","mock-model-7","mock-model-8","mock-model-9","mock-model-10","mock-model-11"],"process_id":[0,0,1,2,2,2,3,3,4,4,5]},"options":{"fixed_step_limiter":0.0,"linear_loss_limit":0.01,"lowest_electron_energy":[0.001,"MeV"],"max_step_over_range":0.2,"min_eprime_over_e":0.8,"min_range":0.1,"spline_eloss_order":1},"processes":{"label":["scattering","absorption","purrs","hisses","meows","barks"]},"sizes":{"integral_xs":8,"model_groups":8,"model_ids":11,"process_groups":5,"process_ids":8,"reals":269,"value_grid_ids":89,"value_grids":89,"value_tables":29}})json"
/******/
Raw output
D:\a\celeritas\celeritas\test\celeritas\phys\Physics.test.cc:146
JSON objects differ:
  value in .["sizes"]["reals"]: expected 257, but got 269
/*** ACTUAL ***/
R"json({"_category":"internal","_label":"physics","models":{"label":["mock-model-1","mock-model-2","mock-model-3","mock-model-4","mock-model-5","mock-model-6","mock-model-7","mock-model-8","mock-model-9","mock-model-10","mock-model-11"],"process_id":[0,0,1,2,2,2,3,3,4,4,5]},"options":{"fixed_step_limiter":0.0,"linear_loss_limit":0.01,"lowest_electron_energy":[0.001,"MeV"],"max_step_over_range":0.2,"min_eprime_over_e":0.8,"min_range":0.1,"spline_eloss_order":1},"processes":{"label":["scattering","absorption","purrs","hisses","meows","barks"]},"sizes":{"integral_xs":8,"model_groups":8,"model_ids":11,"process_groups":5,"process_ids":8,"reals":269,"value_grid_ids":89,"value_grids":89,"value_tables":29}})json"
/******/

Check failure on line 471 in D:\a\celeritas\celeritas\test\celeritas\phys\Physics.test.cc

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

D:\a\celeritas\celeritas\test\celeritas\phys\Physics.test.cc.calc_eloss_range

D:\a\celeritas\celeritas\test\celeritas\phys\Physics.test.cc:523
Values in: range
 Expected: expected_range
8 of 8 elements differ
by 9.9999999999999998e-13 relative error or 1e-14 absolute error
i      expected_range              range         Difference
0 5.2704627669473e-05 0.000105409255338946                   1
1   0.016666666666667  0.0183333333333334  0.0999999999999791
2     1.6666666666667    1.66833333333334 0.000999999999983483
3     166.66666666667    166.668333333334 9.99999998481351e-06
4 4.5175395145263e-05 9.03507902905252e-05   0.999999999999981
5   0.014285714285714  0.0157142857142857   0.100000000000021
6     1.4285714285714                1.43 0.00100000000002234
7     142.85714285714    142.858571428572 1.00000000244054e-05
Raw output
D:\a\celeritas\celeritas\test\celeritas\phys\Physics.test.cc:523
Values in: range
 Expected: expected_range
8 of 8 elements differ
by 9.9999999999999998e-13 relative error or 1e-14 absolute error
i      expected_range              range         Difference
0 5.2704627669473e-05 0.000105409255338946                   1
1   0.016666666666667  0.0183333333333334  0.0999999999999791
2     1.6666666666667    1.66833333333334 0.000999999999983483
3     166.66666666667    166.668333333334 9.99999998481351e-06
4 4.5175395145263e-05 9.03507902905252e-05   0.999999999999981
5   0.014285714285714  0.0157142857142857   0.100000000000021
6     1.4285714285714                1.43 0.00100000000002234
7     142.85714285714    142.858571428572 1.00000000244054e-05

Check failure on line 623 in D:\a\celeritas\celeritas\test\celeritas\phys\Physics.test.cc

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

D:\a\celeritas\celeritas\test\celeritas\phys\Physics.test.cc.cuda_surrogate

D:\a\celeritas\celeritas\test\celeritas\phys\Physics.test.cc:648
Values in: step
 Expected: expected_step
5 of 10 elements differ
by 9.9999999999999998e-13 relative error or 1e-14 absolute error
i       expected_step               step         Difference
5  1.428571428571e-05 2.85714285714286e-05     1.0000000000006
6  0.0001428571428571 0.000285714285714286     1.0000000000006
7     0.1325714285714   0.132655944055944 0.000637509042899377
8      3.016582857143    3.01661143417138 9.4733112724959e-06
9      3.016582857143    3.01661143417138 9.4733112724959e-06
Raw output
D:\a\celeritas\celeritas\test\celeritas\phys\Physics.test.cc:648
Values in: step
 Expected: expected_step
5 of 10 elements differ
by 9.9999999999999998e-13 relative error or 1e-14 absolute error
i       expected_step               step         Difference
5  1.428571428571e-05 2.85714285714286e-05     1.0000000000006
6  0.0001428571428571 0.000285714285714286     1.0000000000006
7     0.1325714285714   0.132655944055944 0.000637509042899377
8      3.016582857143    3.01661143417138 9.4733112724959e-06
9      3.016582857143    3.01661143417138 9.4733112724959e-06

Check failure on line 103 in D:\a\celeritas\celeritas\test\celeritas\phys\PhysicsStepUtils.test.cc

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

D:\a\celeritas\celeritas\test\celeritas\phys\PhysicsStepUtils.test.cc.calc_physics_step_limit

D:\a\celeritas\celeritas\test\celeritas\phys\PhysicsStepUtils.test.cc:143
Value of: to_cm(step.step)
  Actual: 0.48856714661867284
Expected: 0.48853333333333326
Which is: 0.48853333333333326
(Relative error 6.9213875558635959e-05 exceeds tolerance 9.9999999999999998e-13)
Raw output
D:\a\celeritas\celeritas\test\celeritas\phys\PhysicsStepUtils.test.cc:143
Value of: to_cm(step.step)
  Actual: 0.48856714661867284
Expected: 0.48853333333333326
Which is: 0.48853333333333326
(Relative error 6.9213875558635959e-05 exceeds tolerance 9.9999999999999998e-13)

Check failure on line 220 in D:\a\celeritas\celeritas\test\celeritas\phys\PhysicsStepUtils.test.cc

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

D:\a\celeritas\celeritas\test\celeritas\phys\PhysicsStepUtils.test.cc.calc_mean_energy_loss

D:\a\celeritas\celeritas\test\celeritas\phys\PhysicsStepUtils.test.cc:278
Value of: calc_eloss(phys, step)
  Actual: 0.00099749999999999969
Expected: 1e-3
Which is: 0.001
(Relative error -0.0025000000000003318 exceeds tolerance 9.9999999999999998e-13)
Raw output
D:\a\celeritas\celeritas\test\celeritas\phys\PhysicsStepUtils.test.cc:278
Value of: calc_eloss(phys, step)
  Actual: 0.00099749999999999969
Expected: 1e-3
Which is: 0.001
(Relative error -0.0025000000000003318 exceeds tolerance 9.9999999999999998e-13)

Check failure on line 283 in D:\a\celeritas\celeritas\test\celeritas\phys\PhysicsStepUtils.test.cc

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

D:\a\celeritas\celeritas\test\celeritas\phys\PhysicsStepUtils.test.cc.select_discrete_interaction

D:\a\celeritas\celeritas\test\celeritas\phys\PhysicsStepUtils.test.cc:329
Value of: to_cm(step.step)
  Actual: 0.48856714661867284
Expected: 0.48853333333333326
Which is: 0.48853333333333326
(Relative error 6.9213875558635959e-05 exceeds tolerance 9.9999999999999998e-13)
Raw output
D:\a\celeritas\celeritas\test\celeritas\phys\PhysicsStepUtils.test.cc:329
Value of: to_cm(step.step)
  Actual: 0.48856714661867284
Expected: 0.48853333333333326
Which is: 0.48853333333333326
(Relative error 6.9213875558635959e-05 exceeds tolerance 9.9999999999999998e-13)

Check failure on line 416 in D:\a\celeritas\celeritas\test\celeritas\phys\PhysicsStepUtils.test.cc

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

D:\a\celeritas\celeritas\test\celeritas\phys\PhysicsStepUtils.test.cc.calc_physics_step_limit

D:\a\celeritas\celeritas\test\celeritas\phys\PhysicsStepUtils.test.cc:453
Value of: to_cm(step.step)
  Actual: 0.00033333333333333343
Expected: 0.00016666666666666663
Which is: 0.00016666666666666663
(Relative error 1.0000000000000009 exceeds tolerance 9.9999999999999998e-13)
Raw output
D:\a\celeritas\celeritas\test\celeritas\phys\PhysicsStepUtils.test.cc:453
Value of: to_cm(step.step)
  Actual: 0.00033333333333333343
Expected: 0.00016666666666666663
Which is: 0.00016666666666666663
(Relative error 1.0000000000000009 exceeds tolerance 9.9999999999999998e-13)