diff --git a/openmc/tallies.py b/openmc/tallies.py index 76c6fa7141..a4c57e1f1b 100644 --- a/openmc/tallies.py +++ b/openmc/tallies.py @@ -3514,7 +3514,7 @@ class Tallies(cv.CheckedList): if f not in already_written: root_element.append(f.to_xml_element()) already_written[f] = f.id - else: + elif f.id != already_written[f]: # Set the IDs of identical filters with different # user-defined IDs to the same value f.id = already_written[f]