When running a server with the OmniRunner.with_basic_server() module that includes both NanoVer recordings and NanoVer OpenMM XML files, switching from a recording playback to a simulation causes the interaction forces to persist and continue interacting with the new simulation. It appears that the interaction forces are not being properly cleaned up between simulations when cycling through them.
Steps to Reproduce:
Initialize a server using OmniRunner.with_basic_server() with both NanoVer recordings and NanoVer OpenMM XML files.
Start a recording playback simulation.
Switch to a different simulation (e.g., an OpenMM XML simulation) midway through the recording when the interaction force is still there.
Observe that the interaction forces from the previous recording playback persist and affect the new simulation.
When running a server with the
OmniRunner.with_basic_server()
module that includes both NanoVer recordings and NanoVer OpenMM XML files, switching from a recording playback to a simulation causes the interaction forces to persist and continue interacting with the new simulation. It appears that the interaction forces are not being properly cleaned up between simulations when cycling through them.Steps to Reproduce: