Skip to content

Commit

Permalink
Merge pull request #185 from gwenchee/meshfilter
Browse files Browse the repository at this point in the history
Add mesh filter and autolink=False
  • Loading branch information
smpark7 authored Feb 23, 2022
2 parents 21db2d9 + b220628 commit d8af4d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/moltres_xs.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class openmc_xs:
"""

def __init__(self, xs_filename, file_num, xs_summary):
sp = openmc.StatePoint(xs_filename)
sp = openmc.StatePoint(xs_filename, autolink=False)
summary = openmc.Summary(xs_summary)
sp.link_with_summary(summary)
domain_dict = openmc_ref_modules[file_num].domain_dict
Expand Down Expand Up @@ -346,6 +346,8 @@ def generate_openmc_tallies_xml(
domain_dict[id]["filter"] = openmc.MaterialFilter(domain)
elif isinstance(domain, openmc.Cell):
domain_dict[id]["filter"] = openmc.CellFilter(domain)
else:
domain_dict[id]["filter"] = openmc.MeshFilter(domain)
domain_dict[id]["tally"].filters = [
domain_dict[id]["filter"],
energy_filter,
Expand Down

0 comments on commit d8af4d4

Please sign in to comment.