Skip to content

Commit

Permalink
process error messages after sim.add() to catch particles being added
Browse files Browse the repository at this point in the history
outside of simulation box
  • Loading branch information
hannorein committed Feb 13, 2024
1 parent 26f2c67 commit 83566c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rebound/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,7 @@ def add(self, particle=None, **kwargs):
raise ValueError("Argument passed to add() not supported.")
else:
self.add(Particle(simulation=self, **kwargs))
self.process_messages()

# Particle getter functions
@property
Expand Down

0 comments on commit 83566c5

Please sign in to comment.