Fix loop in openmc-track-to-vtk

This commit is contained in:
Paul Romano 2022-05-31 07:32:49 -05:00
parent 8fdbbd2c43
commit fbfdf8227c

View file

@ -41,7 +41,7 @@ def main():
# Write coordinate values to points array.
track_file = openmc.Tracks(fname)
for track in track_file:
for particle in track.particles:
for particle in track:
for state in particle.states:
points.InsertNextPoint(state['r'])