Open rieder opened 2 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 28 days if no further activity occurs. Thank you for your contributions.
I think it would be best to have stopping conditions that can pass a message - e.g.:
def stop(
condition="some condition - like collision, supernova, or simply 'active particle'",
particles_involved=(particle_index_i, particle_index_j, particle_index_k, ...),
)
Probably the condition should allow passing more information, but this would make the conditions more generic. We can re-define current stopping condition as designated messages, and define what these should pass.
The stopping condition library currently has the following stopping conditions:
This doesn't match the table in the AMUSE book describing the stopping conditions (B7) - I've indicated the missing ones in bold:
GRAVITATIONAL DYNAMICS
I think we should add the missing stopping conditions... And perhaps there are more stopping conditions we can think of? Maybe a "general" stopping condition would be useful to have as well, something that can be used instead of stopping the community code (i.e. preventing crashes)?