Algorithmic Surgery Protocol: An Event-Driven Pattern for Instability-Prone PDE Simulations | Synapse