mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
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:
parent
44f0dd73e8
commit
99cae0b146
3 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue