mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Fix setting multiplicity matrix for histogram MGMC XS
This commit is contained in:
parent
9e636a6f07
commit
df5727cf3e
1 changed files with 2 additions and 2 deletions
|
|
@ -1638,9 +1638,9 @@ class XSdata(object):
|
|||
xs_type=xs_type, moment=0,
|
||||
subdomains=subdomain)
|
||||
if scatter.scatter_format == 'histogram':
|
||||
scatt = np.sum(scatt, axis=0)
|
||||
scatt = np.sum(scatt, axis=2)
|
||||
if nuscatter.scatter_format == 'histogram':
|
||||
nuscatt = np.sum(nuscatt, axis=0)
|
||||
nuscatt = np.sum(nuscatt, axis=2)
|
||||
self._multiplicity_matrix[i] = np.divide(nuscatt, scatt)
|
||||
|
||||
self._multiplicity_matrix[i] = \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue