When I add these two CustomNonbonedForces to the system directly, there is no exception.CustomNonbondedForce: The cutoff distance cannot be greater than half the periodic box size.
Any idea about why it happens?
Here are my thoughts:
In order to add a CustomCVForce, OpenMM will create a new subsystem and a new subcontext. I'm wondering if the new subsystem or new context will use the box size of the original system to which the CustomCVForce is added.
Thanks,
Xinqiang