fixed photon_production issue. Problem was that the particle event_, event_nuclide_ and event_mt_ variables were not being set at beginning of XS lookup event.

This commit is contained in:
John Tramm 2019-12-17 18:12:06 +00:00
parent 44f0dd73e8
commit 99cae0b146
3 changed files with 5 additions and 2 deletions

View file

@ -203,6 +203,11 @@ void process_calculate_xs_events(QueueItem * queue, int n)
p->E_last_ = p->E_;
p->u_last_ = p->u();
p->r_last_ = p->r();
// Reset event variables
p->event_ = EVENT_KILL;
p->event_nuclide_ = NUCLIDE_NONE;
p->event_mt_ = REACTION_NONE;
// If the cell hasn't been determined based on the particle's location,
// initiate a search for the current cell. This generally happens at the