From cb3e89bf95fc54ec61f8eaeb914b31e2c8dcf915 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Fri, 21 Jun 2019 10:20:50 -0500 Subject: [PATCH] Always reshape depletion process time dataset The conditional to reshape/extend the "depletion time" dataset in the exporting of a deplete.Results object has been removed. This caused the last exporting to hang when running with MPI --- openmc/deplete/results.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/openmc/deplete/results.py b/openmc/deplete/results.py index e37ccb5407..4b4b91baea 100644 --- a/openmc/deplete/results.py +++ b/openmc/deplete/results.py @@ -304,10 +304,9 @@ class Results(object): # keep depletion time matrix with one less index # corresponding to one fewer calculation - if self.proc_time: - proc_shape = list(proc_time_dset.shape) - proc_shape[0] = new_shape - 1 - proc_time_dset.resize(proc_shape) + proc_shape = list(proc_time_dset.shape) + proc_shape[0] = new_shape - 1 + proc_time_dset.resize(proc_shape) # If nothing to write, just return if len(self.mat_to_ind) == 0: