Fixed issue with order=0 ScatterMatrixXS statepoint loading when not using P0 correction

This commit is contained in:
Will Boyd 2016-05-14 12:33:02 -04:00
parent 132fd870d8
commit 87dfd97e5c
2 changed files with 21 additions and 20 deletions

File diff suppressed because one or more lines are too long

View file

@ -1821,9 +1821,10 @@ class ScatterMatrixXS(MGXS):
# Expand scores to match the format in the statepoint
# e.g., "scatter-P2" -> "scatter-0", "scatter-1", "scatter-2"
tally_key = '{}-P{}'.format(self.rxn_type, self.legendre_order)
self.tallies[tally_key].scores = \
[self.rxn_type + '-{}'.format(i) for i in range(self.legendre_order+1)]
if self.correction != 'P0' or self.legendre_order != 0:
tally_key = '{}-P{}'.format(self.rxn_type, self.legendre_order)
self.tallies[tally_key].scores = \
[self.rxn_type + '-{}'.format(i) for i in range(self.legendre_order+1)]
super(ScatterMatrixXS, self).load_from_statepoint(statepoint)