From dd48e86acd08c4dd578cab38b2a1e0ea2c43c1f6 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 24 Jun 2026 14:28:35 -0500 Subject: [PATCH] Make sure output is treated consistently in R2SManager --- openmc/deplete/microxs.py | 3 ++- openmc/deplete/r2s.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/openmc/deplete/microxs.py b/openmc/deplete/microxs.py index 42bb958caf7..7049f7d3145 100644 --- a/openmc/deplete/microxs.py +++ b/openmc/deplete/microxs.py @@ -233,7 +233,8 @@ def get_microxs_and_flux( model.export_to_model_xml() comm.barrier() # Reinitialize with tallies - openmc.lib.init(intracomm=comm) + output = run_kwargs.get('output', True) if run_kwargs else True + openmc.lib.init(intracomm=comm, output=output) with TemporaryDirectory() as temp_dir: # Indicate to run in temporary directory unless being executed through diff --git a/openmc/deplete/r2s.py b/openmc/deplete/r2s.py index 6dbb3adb2c0..d41e230eedc 100644 --- a/openmc/deplete/r2s.py +++ b/openmc/deplete/r2s.py @@ -347,7 +347,7 @@ def step1_neutron_transport( # Run neutron transport and get fluxes and micros. Run via openmc.lib to # maintain a consistent parallelism strategy with the activation step. - with TemporarySession(): + with TemporarySession(output=False): self.results['fluxes'], self.results['micros'] = get_microxs_and_flux( self.neutron_model, domains, **micro_kwargs)