Skip to content

Commit

Permalink
Run the loop in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumit112192 committed Jul 30, 2024
1 parent 7231707 commit 1a47b9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tardis/transport/montecarlo/montecarlo_main_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ def montecarlo_main_loop(
)

if montecarlo_globals.ENABLE_RPACKET_TRACKING:
for rpacket_tracker in rpacket_trackers:
rpacket_tracker.finalize_array()
for i in prange(no_of_packets):
rpacket_trackers[i].finalize_array()

Check warning on line 183 in tardis/transport/montecarlo/montecarlo_main_loop.py

View check run for this annotation

Codecov / codecov/patch

tardis/transport/montecarlo/montecarlo_main_loop.py#L182-L183

Added lines #L182 - L183 were not covered by tests

return (
v_packets_energy_hist,
Expand Down

0 comments on commit 1a47b9b

Please sign in to comment.