Commit a566a074 authored by Peter Eastman's avatar Peter Eastman
Browse files

Added index bounds checking to lots of methods

parent 12daada5
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
* USE OR OTHER DEALINGS IN THE SOFTWARE. * * USE OR OTHER DEALINGS IN THE SOFTWARE. *
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "../src/SimTKReference/ReferenceNeighborList.h" #include "../src/SimTKReference/ReferenceNeighborList.h"
#include "sfmt/SFMT.h" #include "sfmt/SFMT.h"
#include <cassert> #include <cassert>
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests all the different force terms in the reference implementation of NonbondedForce. * This tests all the different force terms in the reference implementation of NonbondedForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "ReferencePlatform.h" #include "ReferencePlatform.h"
#include "openmm/NonbondedForce.h" #include "openmm/NonbondedForce.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests all the different force terms in the reference implementation of PeriodicTorsionForce. * This tests all the different force terms in the reference implementation of PeriodicTorsionForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "ReferencePlatform.h" #include "ReferencePlatform.h"
#include "openmm/PeriodicTorsionForce.h" #include "openmm/PeriodicTorsionForce.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests all the different force terms in the reference implementation of RBTorsionForce. * This tests all the different force terms in the reference implementation of RBTorsionForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "ReferencePlatform.h" #include "ReferencePlatform.h"
#include "openmm/RBTorsionForce.h" #include "openmm/RBTorsionForce.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the reference implementation of random number generation. * This tests the reference implementation of random number generation.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "../src/SimTKUtilities/SimTKOpenMMUtilities.h" #include "../src/SimTKUtilities/SimTKOpenMMUtilities.h"
#include <iostream> #include <iostream>
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the reference implementation of VariableLangevinIntegrator. * This tests the reference implementation of VariableLangevinIntegrator.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "ReferencePlatform.h" #include "ReferencePlatform.h"
#include "openmm/HarmonicBondForce.h" #include "openmm/HarmonicBondForce.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the reference implementation of VariableVerletIntegrator. * This tests the reference implementation of VariableVerletIntegrator.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "ReferencePlatform.h" #include "ReferencePlatform.h"
#include "openmm/HarmonicBondForce.h" #include "openmm/HarmonicBondForce.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the reference implementation of VerletIntegrator. * This tests the reference implementation of VerletIntegrator.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "ReferencePlatform.h" #include "ReferencePlatform.h"
#include "openmm/HarmonicBondForce.h" #include "openmm/HarmonicBondForce.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the reference implementation of virtual sites. * This tests the reference implementation of virtual sites.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "ReferencePlatform.h" #include "ReferencePlatform.h"
#include "openmm/CustomBondForce.h" #include "openmm/CustomBondForce.h"
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * * along with this program. If not, see <http://www.gnu.org/licenses/>. *
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/CMMotionRemover.h" #include "openmm/CMMotionRemover.h"
#include "openmm/System.h" #include "openmm/System.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Cuda implementation of CudaAmoebaHarmonicAngleForce. * This tests the Cuda implementation of CudaAmoebaHarmonicAngleForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "AmoebaTinkerParameterFile.h" #include "AmoebaTinkerParameterFile.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "OpenMMAmoeba.h" #include "OpenMMAmoeba.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Cuda implementation of HarmonicBondForce. * This tests the Cuda implementation of HarmonicBondForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "CudaPlatform.h" #include "CudaPlatform.h"
#include "AmoebaTinkerParameterFile.h" #include "AmoebaTinkerParameterFile.h"
#include "openmm/Context.h" #include "openmm/Context.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Cuda implementation of CudaAmoebaHarmonicInPlaneAngleForce. * This tests the Cuda implementation of CudaAmoebaHarmonicInPlaneAngleForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "AmoebaTinkerParameterFile.h" #include "AmoebaTinkerParameterFile.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "OpenMMAmoeba.h" #include "OpenMMAmoeba.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Cuda implementation of CudaAmoebaOutOfPlaneBendForce. * This tests the Cuda implementation of CudaAmoebaOutOfPlaneBendForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "AmoebaTinkerParameterFile.h" #include "AmoebaTinkerParameterFile.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "OpenMMAmoeba.h" #include "OpenMMAmoeba.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Ewald summation method cuda implementation of NonbondedForce. * This tests the Ewald summation method cuda implementation of NonbondedForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "AmoebaTinkerParameterFile.h" #include "AmoebaTinkerParameterFile.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "CudaPlatform.h" #include "CudaPlatform.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Cuda implementation of CudaAmoebaPiTorsionForce. * This tests the Cuda implementation of CudaAmoebaPiTorsionForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "AmoebaTinkerParameterFile.h" #include "AmoebaTinkerParameterFile.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "OpenMMAmoeba.h" #include "OpenMMAmoeba.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Cuda implementation of CudaAmoebaStretchBendForce. * This tests the Cuda implementation of CudaAmoebaStretchBendForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "AmoebaTinkerParameterFile.h" #include "AmoebaTinkerParameterFile.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "OpenMMAmoeba.h" #include "OpenMMAmoeba.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Cuda implementation of CudaAmoebaTorsionForce. * This tests the Cuda implementation of CudaAmoebaTorsionForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "AmoebaTinkerParameterFile.h" #include "AmoebaTinkerParameterFile.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "OpenMMAmoeba.h" #include "OpenMMAmoeba.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Cuda implementation of CudaAmoebaTorsionTorsionForce. * This tests the Cuda implementation of CudaAmoebaTorsionTorsionForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "OpenMMAmoeba.h" #include "OpenMMAmoeba.h"
#include "openmm/System.h" #include "openmm/System.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Cuda implementation of UreyBradleyForce. * This tests the Cuda implementation of UreyBradleyForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "AmoebaTinkerParameterFile.h" #include "AmoebaTinkerParameterFile.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "OpenMMAmoeba.h" #include "OpenMMAmoeba.h"
......
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