From 69c3483687d6c2ceab4306592e2e23eaf86c3de2 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Thu, 12 Mar 2026 11:47:32 -0500 Subject: [PATCH] Rename to run --- openmc/deplete/abc.py | 5 ++--- openmc/deplete/keff_search_control.py | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/openmc/deplete/abc.py b/openmc/deplete/abc.py index 00a84a0ec..c149919b1 100644 --- a/openmc/deplete/abc.py +++ b/openmc/deplete/abc.py @@ -864,8 +864,7 @@ class Integrator(ABC): """Get beginning-of-step concentrations, rates, and control state.""" if step_index > 0 or self.operator.prev_res is None: if self._keff_search_control is not None and source_rate != 0.0: - keff_search_root = self._keff_search_control.search_for_keff( - bos_conc) + keff_search_root = self._keff_search_control.run(bos_conc) else: keff_search_root = None bos_conc, res = self._get_bos_data_from_operator( @@ -948,7 +947,7 @@ class Integrator(ABC): if output and final_step and comm.rank == 0: print(f"[openmc.deplete] t={t} (final operator evaluation)") if self._keff_search_control is not None and source_rate != 0.0: - keff_search_root = self._keff_search_control.search_for_keff(n) + keff_search_root = self._keff_search_control.run(n) else: keff_search_root = None res_final = self.operator(n, source_rate if final_step else 0.0) diff --git a/openmc/deplete/keff_search_control.py b/openmc/deplete/keff_search_control.py index b8bc06793..49f7cc4df 100644 --- a/openmc/deplete/keff_search_control.py +++ b/openmc/deplete/keff_search_control.py @@ -41,7 +41,7 @@ class _KeffSearchControl: self.search_kwargs['x_min'] = bracket[0] self.search_kwargs['x_max'] = bracket[1] - def search_for_keff(self, x): + def run(self, x): """Perform keff search and update the atom density vector. Parameters @@ -51,8 +51,6 @@ class _KeffSearchControl: Returns ------- - x : list of numpy.ndarray - Updated atom density vector root : float Parameter value that achieves target keff """