From 98e2e5327d9ae26ec92744f874b575ac05e81233 Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Thu, 8 Dec 2022 15:09:20 +0000 Subject: [PATCH] returning statepoint paths --- openmc/model/model.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openmc/model/model.py b/openmc/model/model.py index d989c0b22d4..be273f79187 100644 --- a/openmc/model/model.py +++ b/openmc/model/model.py @@ -958,6 +958,7 @@ def execute_run(self, **kwargs): self.settings.photon_transport = True self.tallies = self.photon_tallies + statepoint_paths = [] # Run photon transport for each desired timestep for tidx in self.photon_timesteps: new_mats = matlist[tidx] @@ -989,4 +990,6 @@ def execute_run(self, **kwargs): self.settings.source = src_list self.export_to_xml(rundir) - self.run(cwd=rundir) + statepoint_path = self.run(cwd=rundir) + statepoint_paths.append(statepoint_path) + return statepoint_paths