Skip to content

Commit 4a61ab9

Browse files
committed
fix nopython in total_xs helper
1 parent 4c4ccdc commit 4a61ab9

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

mcdc/transport/physics/interface.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,13 @@ def total_xs(particle_container, simulation, data):
5151
"""
5252
particle = particle_container[0]
5353
if particle["particle_type"] == PARTICLE_NEUTRON:
54-
module = neutron
55-
type_total = NEUTRON_REACTION_TOTAL
54+
type = NEUTRON_REACTION_TOTAL
55+
return neutron.macro_xs(type, particle_container, simulation, data)
5656
elif particle["particle_type"] == PARTICLE_ELECTRON:
5757
module = electron
58-
type_total = ELECTRON_REACTION_TOTAL
59-
else:
60-
return 0.0
61-
return module.macro_xs(type_total, particle_container, simulation, data)
58+
type = ELECTRON_REACTION_TOTAL
59+
return neutron.macro_xs(type, particle_container, simulation, data)
60+
return 0.0
6261

6362

6463
@njit

0 commit comments

Comments
 (0)