Skip to content

Commit

Permalink
Need to clear scenes list when looped API call to gprMax.run
Browse files Browse the repository at this point in the history
  • Loading branch information
craig-warren committed Apr 24, 2024
1 parent 2a3d957 commit 60923f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gprMax/contexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ def run(self):
elif config.sim_config.general["solver"] == "opencl":
print_opencl_info(config.sim_config.devices["devs"])

# Clear list of model configs. It can be retained when gprMax is
# called in a loop, and want to avoid this.
# Clear list of scenes and model configs, which can be retained when
# gprMax is called in a loop, and want to avoid this.
config.sim_config.scenes = []
config.model_configs = []

for i in self.model_range:
Expand Down

0 comments on commit 60923f5

Please sign in to comment.