Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
a566a074
Commit
a566a074
authored
Jan 31, 2012
by
Peter Eastman
Browse files
Added index bounds checking to lots of methods
parent
12daada5
Changes
178
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
21 additions
and
20 deletions
+21
-20
platforms/reference/tests/TestReferenceBrownianIntegrator.cpp
...forms/reference/tests/TestReferenceBrownianIntegrator.cpp
+1
-1
platforms/reference/tests/TestReferenceCMAPTorsionForce.cpp
platforms/reference/tests/TestReferenceCMAPTorsionForce.cpp
+1
-1
platforms/reference/tests/TestReferenceCMMotionRemover.cpp
platforms/reference/tests/TestReferenceCMMotionRemover.cpp
+1
-1
platforms/reference/tests/TestReferenceCustomAngleForce.cpp
platforms/reference/tests/TestReferenceCustomAngleForce.cpp
+1
-1
platforms/reference/tests/TestReferenceCustomBondForce.cpp
platforms/reference/tests/TestReferenceCustomBondForce.cpp
+1
-1
platforms/reference/tests/TestReferenceCustomExternalForce.cpp
...orms/reference/tests/TestReferenceCustomExternalForce.cpp
+1
-1
platforms/reference/tests/TestReferenceCustomGBForce.cpp
platforms/reference/tests/TestReferenceCustomGBForce.cpp
+2
-1
platforms/reference/tests/TestReferenceCustomHbondForce.cpp
platforms/reference/tests/TestReferenceCustomHbondForce.cpp
+1
-1
platforms/reference/tests/TestReferenceCustomIntegrator.cpp
platforms/reference/tests/TestReferenceCustomIntegrator.cpp
+1
-1
platforms/reference/tests/TestReferenceCustomNonbondedForce.cpp
...rms/reference/tests/TestReferenceCustomNonbondedForce.cpp
+1
-1
platforms/reference/tests/TestReferenceCustomTorsionForce.cpp
...forms/reference/tests/TestReferenceCustomTorsionForce.cpp
+1
-1
platforms/reference/tests/TestReferenceEwald.cpp
platforms/reference/tests/TestReferenceEwald.cpp
+1
-1
platforms/reference/tests/TestReferenceGBSAOBCForce.cpp
platforms/reference/tests/TestReferenceGBSAOBCForce.cpp
+1
-1
platforms/reference/tests/TestReferenceGBVIForce.cpp
platforms/reference/tests/TestReferenceGBVIForce.cpp
+1
-1
platforms/reference/tests/TestReferenceHarmonicAngleForce.cpp
...forms/reference/tests/TestReferenceHarmonicAngleForce.cpp
+1
-1
platforms/reference/tests/TestReferenceHarmonicBondForce.cpp
platforms/reference/tests/TestReferenceHarmonicBondForce.cpp
+1
-1
platforms/reference/tests/TestReferenceKineticEnergy.cpp
platforms/reference/tests/TestReferenceKineticEnergy.cpp
+1
-1
platforms/reference/tests/TestReferenceLangevinIntegrator.cpp
...forms/reference/tests/TestReferenceLangevinIntegrator.cpp
+1
-1
platforms/reference/tests/TestReferenceLocalEnergyMinimizer.cpp
...rms/reference/tests/TestReferenceLocalEnergyMinimizer.cpp
+1
-1
platforms/reference/tests/TestReferenceMonteCarloBarostat.cpp
...forms/reference/tests/TestReferenceMonteCarloBarostat.cpp
+1
-1
No files found.
platforms/reference/tests/TestReferenceBrownianIntegrator.cpp
View file @
a566a074
...
@@ -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"
...
...
platforms/reference/tests/TestReferenceCMAPTorsionForce.cpp
View file @
a566a074
...
@@ -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"
...
...
platforms/reference/tests/TestReferenceCMMotionRemover.cpp
View file @
a566a074
...
@@ -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"
...
...
platforms/reference/tests/TestReferenceCustomAngleForce.cpp
View file @
a566a074
...
@@ -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"
...
...
platforms/reference/tests/TestReferenceCustomBondForce.cpp
View file @
a566a074
...
@@ -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"
...
...
platforms/reference/tests/TestReferenceCustomExternalForce.cpp
View file @
a566a074
...
@@ -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"
...
...
platforms/reference/tests/TestReferenceCustomGBForce.cpp
View file @
a566a074
...
@@ -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>
...
...
platforms/reference/tests/TestReferenceCustomHbondForce.cpp
View file @
a566a074
...
@@ -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"
...
...
platforms/reference/tests/TestReferenceCustomIntegrator.cpp
View file @
a566a074
...
@@ -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"
...
...
platforms/reference/tests/TestReferenceCustomNonbondedForce.cpp
View file @
a566a074
...
@@ -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"
...
...
platforms/reference/tests/TestReferenceCustomTorsionForce.cpp
View file @
a566a074
...
@@ -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"
...
...
platforms/reference/tests/TestReferenceEwald.cpp
View file @
a566a074
...
@@ -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"
...
...
platforms/reference/tests/TestReferenceGBSAOBCForce.cpp
View file @
a566a074
...
@@ -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"
...
...
platforms/reference/tests/TestReferenceGBVIForce.cpp
View file @
a566a074
...
@@ -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"
...
...
platforms/reference/tests/TestReferenceHarmonicAngleForce.cpp
View file @
a566a074
...
@@ -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"
...
...
platforms/reference/tests/TestReferenceHarmonicBondForce.cpp
View file @
a566a074
...
@@ -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"
...
...
platforms/reference/tests/TestReferenceKineticEnergy.cpp
View file @
a566a074
...
@@ -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"
...
...
platforms/reference/tests/TestReferenceLangevinIntegrator.cpp
View file @
a566a074
...
@@ -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"
...
...
platforms/reference/tests/TestReferenceLocalEnergyMinimizer.cpp
View file @
a566a074
...
@@ -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"
...
...
platforms/reference/tests/TestReferenceMonteCarloBarostat.cpp
View file @
a566a074
...
@@ -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"
...
...
Prev
1
2
3
4
5
6
7
8
9
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment