Reduce in deplete.Results.save only if proc_time is not None

This commit is contained in:
Andrew Johnson 2019-06-21 10:25:10 -05:00
parent cb3e89bf95
commit da23e4646d
No known key found for this signature in database
GPG key ID: 253418E91B7F6FEB

View file

@ -448,7 +448,7 @@ class Results(object):
results.time = t
results.power = power
results.proc_time = proc_time
if step_ind and results.proc_time is not None:
if results.proc_time is not None:
results.proc_time = comm.reduce(proc_time, op=mpi_sum)
results.export_to_hdf5("depletion_results.h5", step_ind)