mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -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
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@
|
|||
<cutoff>
|
||||
<energy_photon>1000.0</energy_photon>
|
||||
</cutoff>
|
||||
<verbosity>10</verbosity>
|
||||
</settings>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<tallies>
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@ class SourceTestHarness(PyAPITestHarness):
|
|||
settings.electron_treatment = 'ttb'
|
||||
settings.cutoff = {'energy_photon' : 1000.0}
|
||||
settings.source = source
|
||||
settings.verbosity = 10
|
||||
settings.export_to_xml()
|
||||
|
||||
surface_filter = openmc.SurfaceFilter(cyl)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue