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 reference implementation of BrownianIntegrator. * This tests the reference implementation of BrownianIntegrator.
*/ */
#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 CMAPTorsionForce. * This tests the reference implementation of CMAPTorsionForce.
*/ */
#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/CMAPTorsionForce.h" #include "openmm/CMAPTorsionForce.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the reference implementation of AndersenThermostat. * This tests the reference 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 "ReferencePlatform.h" #include "ReferencePlatform.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the reference implementation of CustomAngleForce. * This tests the reference implementation of CustomAngleForce.
*/ */
#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/CustomAngleForce.h" #include "openmm/CustomAngleForce.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the reference implementation of CustomBondForce. * This tests the reference implementation of CustomBondForce.
*/ */
#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"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the reference implementation of CustomExternalForce. * This tests the reference implementation of CustomExternalForce.
*/ */
#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/CustomExternalForce.h" #include "openmm/CustomExternalForce.h"
......
...@@ -34,13 +34,14 @@ ...@@ -34,13 +34,14 @@
* This tests all the different force terms in the reference implementation of CustomGBForce. * This tests all the different force terms in the reference implementation of CustomGBForce.
*/ */
#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 "ReferencePlatform.h" #include "ReferencePlatform.h"
#include "openmm/CustomGBForce.h" #include "openmm/CustomGBForce.h"
#include "openmm/GBSAOBCForce.h" #include "openmm/GBSAOBCForce.h"
#include "openmm/GBVIForce.h" #include "openmm/GBVIForce.h"
#include "openmm/OpenMMException.h"
#include "openmm/System.h" #include "openmm/System.h"
#include "openmm/VerletIntegrator.h" #include "openmm/VerletIntegrator.h"
#include <iostream> #include <iostream>
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the reference implementation of CustomHbondForce. * This tests the reference implementation of CustomHbondForce.
*/ */
#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/CustomHbondForce.h" #include "openmm/CustomHbondForce.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the reference implementation of CustomIntegrator. * This tests the reference implementation of CustomIntegrator.
*/ */
#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/AndersenThermostat.h" #include "openmm/AndersenThermostat.h"
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
* This tests all the different force terms in the reference implementation of CustomNonbondedForce. * This tests all the different force terms in the reference 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 "ReferencePlatform.h" #include "ReferencePlatform.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 "ReferencePlatform.h" #include "ReferencePlatform.h"
#include "openmm/CustomTorsionForce.h" #include "openmm/CustomTorsionForce.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Eewald summation method reference implementation of NonbondedForce. * This tests the Eewald summation method 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 the reference implementation of GBSAOBCForce. * This tests the reference implementation of GBSAOBCForce.
*/ */
#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/GBSAOBCForce.h" #include "openmm/GBSAOBCForce.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 "openmm/HarmonicBondForce.h" #include "openmm/HarmonicBondForce.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests all the different force terms in the reference implementation of HarmonicAngleForce. * This tests all the different force terms in the reference implementation of HarmonicAngleForce.
*/ */
#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/HarmonicAngleForce.h" #include "openmm/HarmonicAngleForce.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests all the different force terms in the reference implementation of HarmonicBondForce. * This tests all the different force terms in the reference implementation of HarmonicBondForce.
*/ */
#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 the kernel to calculate kinetic energy. * This tests the reference implementation of the kernel to calculate kinetic energy.
*/ */
#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/System.h" #include "openmm/System.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 "ReferencePlatform.h" #include "ReferencePlatform.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 "ReferencePlatform.h" #include "ReferencePlatform.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 reference implementation of MonteCarloBarostat. * This tests the reference 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 "ReferencePlatform.h" #include "ReferencePlatform.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