Skip to content

Commit

Permalink
reset timers after writing statepoint file
Browse files Browse the repository at this point in the history
  • Loading branch information
yardasol committed Nov 18, 2022
1 parent 309c78d commit e428140
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openmc/deplete/coupled_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,6 @@ def __call__(self, vec, source_rate):

# Run OpenMC
openmc.lib.run()
openmc.lib.reset_timers()

# Extract results
rates = self._calculate_reaction_rates(source_rate)
Expand Down Expand Up @@ -529,6 +528,8 @@ def write_bos_data(step):
"openmc_simulation_n{}.h5".format(step),
write_source=False)

openmc.lib.reset_timers()

def finalize(self):
"""Finalize a depletion simulation and release resources."""
if self.cleanup_when_done:
Expand Down

0 comments on commit e428140

Please sign in to comment.