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

Added index bounds checking to lots of methods

parent 12daada5
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Cuda implementation of AndersenThermostat. * This tests the Cuda implementation of AndersenThermostat.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/AndersenThermostat.h" #include "openmm/AndersenThermostat.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "CudaPlatform.h" #include "CudaPlatform.h"
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
* This tests the Cuda implementation of BrownianIntegrator. * This tests the Cuda implementation of BrownianIntegrator.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "CudaPlatform.h" #include "CudaPlatform.h"
#include "openmm/HarmonicBondForce.h" #include "openmm/HarmonicBondForce.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Cuda implementation of CMAPTorsionForce. * This tests the Cuda implementation of CMAPTorsionForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "CudaPlatform.h" #include "CudaPlatform.h"
#include "openmm/CMAPTorsionForce.h" #include "openmm/CMAPTorsionForce.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Cuda implementation of AndersenThermostat. * This tests the Cuda implementation of AndersenThermostat.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/CMMotionRemover.h" #include "openmm/CMMotionRemover.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 CustomAngleForce. * This tests the CUDA implementation of CustomAngleForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "CudaPlatform.h" #include "CudaPlatform.h"
#include "openmm/CustomAngleForce.h" #include "openmm/CustomAngleForce.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Cuda implementation of CustomBondForce. * This tests the Cuda implementation of CustomBondForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "CudaPlatform.h" #include "CudaPlatform.h"
#include "openmm/CustomBondForce.h" #include "openmm/CustomBondForce.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Cuda implementation of CustomExternalForce. * This tests the Cuda implementation of CustomExternalForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "CudaPlatform.h" #include "CudaPlatform.h"
#include "openmm/CustomExternalForce.h" #include "openmm/CustomExternalForce.h"
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
* This tests all the different force terms in the Cuda implementation of CustomNonbondedForce. * This tests all the different force terms in the Cuda implementation of CustomNonbondedForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "sfmt/SFMT.h" #include "sfmt/SFMT.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "CudaPlatform.h" #include "CudaPlatform.h"
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#ifdef WIN32 #ifdef WIN32
#define _USE_MATH_DEFINES // Needed to get M_PI #define _USE_MATH_DEFINES // Needed to get M_PI
#endif #endif
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "CudaPlatform.h" #include "CudaPlatform.h"
#include "openmm/CustomTorsionForce.h" #include "openmm/CustomTorsionForce.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 "openmm/Context.h" #include "openmm/Context.h"
#include "CudaPlatform.h" #include "CudaPlatform.h"
#include "ReferencePlatform.h" #include "ReferencePlatform.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Cuda implementation of GBSAOBCForce. * This tests the Cuda implementation of GBSAOBCForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "CudaPlatform.h" #include "CudaPlatform.h"
#include "ReferencePlatform.h" #include "ReferencePlatform.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the reference implementation of GBVIForce. * This tests the reference implementation of GBVIForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "ReferencePlatform.h" #include "ReferencePlatform.h"
#include "CudaPlatform.h" #include "CudaPlatform.h"
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
* Utility methods shared across unit tests * Utility methods shared across unit tests
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "openmm/System.h" #include "openmm/System.h"
#include "../src/SimTKUtilities/SimTKOpenMMRealType.h" #include "../src/SimTKUtilities/SimTKOpenMMRealType.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Cuda implementation of HarmonicAngleForce. * This tests the Cuda implementation of HarmonicAngleForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "CudaPlatform.h" #include "CudaPlatform.h"
#include "openmm/HarmonicAngleForce.h" #include "openmm/HarmonicAngleForce.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 "openmm/Context.h" #include "openmm/Context.h"
#include "CudaPlatform.h" #include "CudaPlatform.h"
#include "openmm/HarmonicBondForce.h" #include "openmm/HarmonicBondForce.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the reference implementation of LangevinIntegrator. * This tests the reference implementation of LangevinIntegrator.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "CudaPlatform.h" #include "CudaPlatform.h"
#include "openmm/HarmonicBondForce.h" #include "openmm/HarmonicBondForce.h"
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,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 "CudaPlatform.h" #include "CudaPlatform.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "openmm/HarmonicBondForce.h" #include "openmm/HarmonicBondForce.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Cuda implementation of MonteCarloBarostat. * This tests the Cuda implementation of MonteCarloBarostat.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/MonteCarloBarostat.h" #include "openmm/MonteCarloBarostat.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 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 "CudaPlatform.h" #include "CudaPlatform.h"
#include "ReferencePlatform.h" #include "ReferencePlatform.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Cuda implementation of PeriodicTorsionForce. * This tests the Cuda implementation of PeriodicTorsionForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "CudaPlatform.h" #include "CudaPlatform.h"
#include "openmm/PeriodicTorsionForce.h" #include "openmm/PeriodicTorsionForce.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