From 3fcb9692be2dd920e773c04bfab8151b5f773549 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Sat, 4 Jul 2026 22:20:03 -0500 Subject: [PATCH] Make sure output is treated consistently in R2SManager (#3994) --- 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 42bb958ca..7049f7d31 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 6dbb3adb2..d41e230ee 100644 --- a/openmc/deplete/r2s.py +++ b/openmc/deplete/r2s.py @@ -347,7 +347,7 @@ class R2SManager: # 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)