mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Update openmc/deplete/r2s.py per @GuySten suggestion
Co-authored-by: GuySten <62616591+GuySten@users.noreply.github.com>
This commit is contained in:
parent
afe5a289ec
commit
aa2447ccd1
1 changed files with 1 additions and 1 deletions
|
|
@ -515,7 +515,7 @@ class R2SManager:
|
|||
raise IndexError(
|
||||
f'Photon time index {index} is out of range for '
|
||||
f'{n_steps} depletion results')
|
||||
normalized_index = index + n_steps if index < 0 else index
|
||||
normalized_index = index % n_steps
|
||||
normalized_indices.append(normalized_index)
|
||||
|
||||
# Remove duplicates while preserving order
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue