Skip to content

Commit

Permalink
Merge 27d729a into cfbc7f6
Browse files Browse the repository at this point in the history
  • Loading branch information
mgjarrett authored Feb 22, 2024
2 parents cfbc7f6 + 27d729a commit f18049d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion armi/physics/neutronics/crossSectionGroupManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,8 @@ def createRepresentativeBlocksUsingExistingBlocks(
oldXSID = origXSIDsFromNew[newXSID]
oldBlockCollection = blockCollectionByXsGroup[oldXSID]
newBlockCollection = oldBlockCollection.__class__(
oldBlockCollection.allNuclidesInProblem
oldBlockCollection.allNuclidesInProblem,
averageByComponent=oldBlockCollection.averageByComponent,
)
newBlockCollectionsByXsGroup[newXSID] = newBlockCollection
return newBlockCollectionsByXsGroup, modifiedReprBlocks, origXSIDsFromNew
Expand Down Expand Up @@ -1288,6 +1289,12 @@ def _getModifiedReprBlocks(self, blockList, originalRepresentativeBlocks):
if b.getMicroSuffix() == origXSID:
b.p.xsType = newXSType

# copy XS settings to new XS ID
self.cs[CONF_CROSS_SECTION][newXSID] = copy.deepcopy(
self.cs[CONF_CROSS_SECTION][origXSID]
)
self.cs[CONF_CROSS_SECTION][newXSID].xsID = newXSID

return modifiedReprBlocks, origXSIDsFromNew

def getNextAvailableXsTypes(self, howMany=1, excludedXSTypes=None):
Expand Down

0 comments on commit f18049d

Please sign in to comment.