mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Fixed a few issues in transport correction for consistent scattering matrices
This commit is contained in:
parent
f3192d01b8
commit
70a8101cc6
1 changed files with 1 additions and 6 deletions
|
|
@ -3911,9 +3911,7 @@ class ScatterMatrixXS(MatrixMGXS):
|
|||
self._valid_estimators = ['analog']
|
||||
|
||||
def __deepcopy__(self, memo):
|
||||
print('HERE2')
|
||||
clone = super(ScatterMatrixXS, self).__deepcopy__(memo)
|
||||
print('HERE3', clone)
|
||||
clone._correction = self.correction
|
||||
clone._scatter_format = self.scatter_format
|
||||
clone._legendre_order = self.legendre_order
|
||||
|
|
@ -5240,11 +5238,8 @@ class ConvolvedMGXS(MGXS):
|
|||
name, num_polar, num_azimuthal)
|
||||
|
||||
def __deepcopy__(self, memo):
|
||||
print('HERE1')
|
||||
clone = super(ConvolvedMGXS, self).__deepcopy__(memo)
|
||||
print('WTF')
|
||||
clone._mgxs = copy.deepcopy(self.mgxs)
|
||||
print('HERE4')
|
||||
return clone
|
||||
|
||||
@property
|
||||
|
|
@ -5660,7 +5655,7 @@ class ConsistentScatterMatrixXS(ConvolvedMGXS, ScatterMatrixXS):
|
|||
|
||||
self._xs_tally = \
|
||||
self.scatter_xs.xs_tally * self.probability_matrix.xs_tally
|
||||
self._xs_tally - correction
|
||||
self._xs_tally -= correction
|
||||
self._compute_xs()
|
||||
|
||||
return self._xs_tally
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue