Skip to content

Commit

Permalink
removed unused step_index arg from restart (#2867)
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Feb 28, 2024
1 parent b3a2456 commit a8f7a61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openmc/deplete/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ def _get_bos_data_from_operator(self, step_index, source_rate, bos_conc):
self.operator.write_bos_data(step_index + self._i_res)
return x, res

def _get_bos_data_from_restart(self, step_index, source_rate, bos_conc):
def _get_bos_data_from_restart(self, source_rate, bos_conc):
"""Get beginning of step concentrations, reaction rates from restart"""
res = self.operator.prev_res[-1]
# Depletion methods expect list of arrays
Expand Down Expand Up @@ -823,7 +823,7 @@ def integrate(
if i > 0 or self.operator.prev_res is None:
n, res = self._get_bos_data_from_operator(i, source_rate, n)
else:
n, res = self._get_bos_data_from_restart(i, source_rate, n)
n, res = self._get_bos_data_from_restart(source_rate, n)

# Solve Bateman equations over time interval
proc_time, n_list, res_list = self(n, res.rates, dt, source_rate, i)
Expand Down Expand Up @@ -1030,7 +1030,7 @@ def integrate(
if self.operator.prev_res is None:
n, res = self._get_bos_data_from_operator(i, p, n)
else:
n, res = self._get_bos_data_from_restart(i, p, n)
n, res = self._get_bos_data_from_restart(p, n)
else:
# Pull rates, k from previous iteration w/o
# re-running transport
Expand Down

0 comments on commit a8f7a61

Please sign in to comment.