Skip to content

Commit

Permalink
Explicitly deleting context object
Browse files Browse the repository at this point in the history
  • Loading branch information
ijpulidos committed Aug 22, 2022
1 parent 24ca6c1 commit 9fad690
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions perses/rjmc/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,9 @@ def _corrected_reduced_potential(self, growth_system_generator, positions, platf
added_energy_components = compute_potential_components(mod_context)
print(f"added energy components: {added_energy_components}")

# Explicitly clean up context memory allocation
del mod_context

return modified_reduced_potential_energy


Expand Down

0 comments on commit 9fad690

Please sign in to comment.