Unverified Commit 892839b8 authored by Peter Eastman's avatar Peter Eastman Committed by GitHub
Browse files

Removed incorrect checks for offset scale factors (#3321)

parent 2f20fbe2
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* Biological Structures at Stanford, funded under the NIH Roadmap for * * Biological Structures at Stanford, funded under the NIH Roadmap for *
* Medical Research, grant U54 GM072970. See https://simtk.org. * * Medical Research, grant U54 GM072970. See https://simtk.org. *
* * * *
* Portions copyright (c) 2008-2018 Stanford University and the Authors. * * Portions copyright (c) 2008-2021 Stanford University and the Authors. *
* Authors: Peter Eastman * * Authors: Peter Eastman *
* Contributors: * * Contributors: *
* * * *
...@@ -109,10 +109,6 @@ void NonbondedForceImpl::initialize(ContextImpl& context) { ...@@ -109,10 +109,6 @@ void NonbondedForceImpl::initialize(ContextImpl& context) {
msg << particleIndex; msg << particleIndex;
throw OpenMMException(msg.str()); throw OpenMMException(msg.str());
} }
if (sigmaScale < 0)
throw OpenMMException("NonbondedForce: sigma scale for a particle parameter offset cannot be negative");
if (epsilonScale < 0)
throw OpenMMException("NonbondedForce: epsilon scale for a particle parameter offset cannot be negative");
} }
for (int i = 0; i < owner.getNumExceptionParameterOffsets(); i++) { for (int i = 0; i < owner.getNumExceptionParameterOffsets(); i++) {
string parameter; string parameter;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment