Skip to content

Commit

Permalink
Remove ENABLE_RPACKET_TRACKING global variable from montecarlo_main_loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumit112192 committed Jul 22, 2024
1 parent df1988c commit f9b8893
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions tardis/transport/montecarlo/configuration/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,3 @@ def configuration_initialize(config, transport, number_of_vpackets):
montecarlo_globals.ENABLE_RPACKET_TRACKING = (
transport.enable_rpacket_tracking
)
montecarlo_main_loop.ENABLE_RPACKET_TRACKING = (
transport.enable_rpacket_tracking
)
5 changes: 1 addition & 4 deletions tardis/transport/montecarlo/montecarlo_main_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
consolidate_vpacket_tracker,
initialize_last_interaction_tracker,
)
import tardis.transport.montecarlo.montecarlo_main_loop as montecarlo_loop
from tardis.transport.montecarlo.packet_trackers import (
RPacketTracker,
RPacketLastInteractionTracker,
Expand All @@ -24,8 +23,6 @@
)
from tardis.util.base import update_packet_pbar

ENABLE_RPACKET_TRACKING = False


@njit(**njit_dict)
def montecarlo_main_loop(
Expand Down Expand Up @@ -185,7 +182,7 @@ def montecarlo_main_loop(
1,
)

if ENABLE_RPACKET_TRACKING:
if montecarlo_globals.ENABLE_RPACKET_TRACKING:
for rpacket_tracker in rpacket_trackers:
rpacket_tracker.finalize_array()

Expand Down

0 comments on commit f9b8893

Please sign in to comment.