Skip to content

Commit

Permalink
Add stop method to HopContainer
Browse files Browse the repository at this point in the history
This should fix the hop stopping problem mentioned in #344
  • Loading branch information
rieder authored Nov 29, 2018
1 parent 5495b6c commit 75fc57d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/amuse/datamodel/particle_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,9 @@ def initialize(self, unit_converter):
else:
if len(self.code.particles) > 0:
self.code.particles.remove_particles(self.code.particles)

def stop(self):
self.code.stop()


def densitycentre_coreradius_coredens(particles, unit_converter=None, number_of_neighbours=7,
Expand Down

0 comments on commit 75fc57d

Please sign in to comment.