mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Fixed bug in MGXS.get_subdomain_avg(...) with material domain tyeps
This commit is contained in:
parent
769ff64107
commit
4f28c69d70
1 changed files with 4 additions and 1 deletions
|
|
@ -773,7 +773,10 @@ class MGXS(object):
|
|||
|
||||
# Clone this MGXS to initialize the subdomain-averaged version
|
||||
avg_xs = copy.deepcopy(self)
|
||||
avg_xs.domain_type = 'cell'
|
||||
|
||||
# If domain is distribcell, make the new domain 'cell'
|
||||
if self.domain_type == 'distribcell':
|
||||
avg_xs.domain_type = 'cell'
|
||||
|
||||
# Average each of the tallies across subdomains
|
||||
for tally_type, tally in avg_xs.tallies.items():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue