"platforms/reference/vscode:/vscode.git/clone" did not exist on "2cfc68215e38966587f6dbfbcf6918f04c363a86"
Add an explicit (shallow) copy constructor for CustomNonbondedForce. This fixes
segfaults when you use the long-range dispersion correction with the CustomNonbondedForce if the force uses TabulatedFunction objects. Basically, it prevents the copy from taking ownership (and deleting) the functions in its destructor. The use cases for CustomNonbondedForce copying currently is to recompute the long-range prefactor if the parameters change (so the CustomNonbondedForceImpl kernels need a copy of the Force object). Doing a full (deep) copy would be a bit slower (although would only need to be paid once for each CustomNonbondedForce object being used).
Showing
Please register or sign in to comment