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 CudaAmoebaVdwForce. * This tests the Cuda implementation of CudaAmoebaVdwForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "OpenMMAmoeba.h" #include "OpenMMAmoeba.h"
#include "AmoebaTinkerParameterFile.h" #include "AmoebaTinkerParameterFile.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 "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 Reference implementation of HarmonicBondForce. * This tests the Reference implementation of HarmonicBondForce.
*/ */
#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 Reference implementation of ReferenceAmoebaHarmonicInPlaneAngleForce. * This tests the Reference implementation of ReferenceAmoebaHarmonicInPlaneAngleForce.
*/ */
#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 Reference implementation of ReferenceAmoebaOutOfPlaneBendForce. * This tests the Reference implementation of ReferenceAmoebaOutOfPlaneBendForce.
*/ */
#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 Reference implementation of ReferenceAmoebaPiTorsionForce. * This tests the Reference implementation of ReferenceAmoebaPiTorsionForce.
*/ */
#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 Reference implementation of ReferenceAmoebaStretchBendForce. * This tests the Reference implementation of ReferenceAmoebaStretchBendForce.
*/ */
#include "../../../tests/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
//#include "AmoebaTinkerParameterFile.h" //#include "AmoebaTinkerParameterFile.h"
const double DegreesToRadians = 3.14159265/180.0; const double DegreesToRadians = 3.14159265/180.0;
#include "openmm/Context.h" #include "openmm/Context.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Reference implementation of ReferenceAmoebaTorsionForce. * This tests the Reference implementation of ReferenceAmoebaTorsionForce.
*/ */
#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 Reference implementation of AmoebaTorsionTorsionForce. * This tests the Reference implementation of AmoebaTorsionTorsionForce.
*/ */
#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"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* This tests the Reference implementation of ReferenceAmoebaVdwForce. * This tests the Reference implementation of ReferenceAmoebaVdwForce.
*/ */
#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"
......
...@@ -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 "openmm/AmoebaGeneralizedKirkwoodForce.h" #include "openmm/AmoebaGeneralizedKirkwoodForce.h"
#include "openmm/serialization/XmlSerializer.h" #include "openmm/serialization/XmlSerializer.h"
#include <iostream> #include <iostream>
......
...@@ -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 "openmm/AmoebaHarmonicAngleForce.h" #include "openmm/AmoebaHarmonicAngleForce.h"
#include "openmm/serialization/XmlSerializer.h" #include "openmm/serialization/XmlSerializer.h"
#include <iostream> #include <iostream>
......
...@@ -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 "openmm/AmoebaHarmonicBondForce.h" #include "openmm/AmoebaHarmonicBondForce.h"
#include "openmm/serialization/XmlSerializer.h" #include "openmm/serialization/XmlSerializer.h"
#include <iostream> #include <iostream>
......
...@@ -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 "openmm/AmoebaHarmonicInPlaneAngleForce.h" #include "openmm/AmoebaHarmonicInPlaneAngleForce.h"
#include "openmm/serialization/XmlSerializer.h" #include "openmm/serialization/XmlSerializer.h"
#include <iostream> #include <iostream>
......
...@@ -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 "openmm/AmoebaMultipoleForce.h" #include "openmm/AmoebaMultipoleForce.h"
#include "openmm/serialization/XmlSerializer.h" #include "openmm/serialization/XmlSerializer.h"
#include <iostream> #include <iostream>
......
...@@ -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 "openmm/AmoebaOutOfPlaneBendForce.h" #include "openmm/AmoebaOutOfPlaneBendForce.h"
#include "openmm/serialization/XmlSerializer.h" #include "openmm/serialization/XmlSerializer.h"
#include <iostream> #include <iostream>
......
...@@ -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 "openmm/AmoebaPiTorsionForce.h" #include "openmm/AmoebaPiTorsionForce.h"
#include "openmm/serialization/XmlSerializer.h" #include "openmm/serialization/XmlSerializer.h"
#include <iostream> #include <iostream>
......
...@@ -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 "openmm/AmoebaStretchBendForce.h" #include "openmm/AmoebaStretchBendForce.h"
#include "openmm/serialization/XmlSerializer.h" #include "openmm/serialization/XmlSerializer.h"
#include <iostream> #include <iostream>
......
...@@ -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 "openmm/AmoebaTorsionForce.h" #include "openmm/AmoebaTorsionForce.h"
#include "openmm/serialization/XmlSerializer.h" #include "openmm/serialization/XmlSerializer.h"
#include <iostream> #include <iostream>
......
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