Resolve "Fix tests that use default `P0` and `FROMFILE`"
Closes #109 (closed)
Merge request reports
Activity
added Cleanup label
added 1 commit
- f3b68d9a - Correct BEAM momentum to agree with FROMFILE distribution.
requested review from @ext-calvo_p
Yeah I also got this and I don't understand. I checked with OPAL master and it also fails, so it's not a bug that we introduced now.I was wrong, sorry. Actually with the master branch it fails only if I give it
P0
, but if I don't, then it uses the defaultP0
and it doesn't fail.Edited by albajacas_aThe statistics in the stat file are written every ten steps, but if we give the correct
P0
the chosen timestep is a bit smaller so it writes to the stat file 143 times instead of 142, that is why it is failing.IMO this was a bug before this MR, because the timestep was chosen according to the momentum in
BEAM
instead of being chosen according to the momentum in the particle file.Yes, you're right. So I would update the reference results with the correct input momentum.
Edited by ext-calvo_pI don't understand why the differences are so big. The only difference is that I am giving the correct
P0
.Edited by albajacas_a
- Resolved by albajacas_a
added 1 commit
- 45c3ec8f - Remove unnecessary definitions of energy in AWAGun-TrackBack-1 test.
mentioned in commit ec6d2583
- Resolved by albajacas_a
Sorry, I clicked the wrong button. Wanted to approve this MR but merged it instead.