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
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
20 additions
and
22 deletions
+20
-22
plugins/amoeba/serialization/tests/TestSerializeAmoebaTorsionTorsionForce.cpp
...lization/tests/TestSerializeAmoebaTorsionTorsionForce.cpp
+1
-1
plugins/amoeba/serialization/tests/TestSerializeAmoebaUreyBradleyForce.cpp
...rialization/tests/TestSerializeAmoebaUreyBradleyForce.cpp
+1
-1
plugins/amoeba/serialization/tests/TestSerializeAmoebaVdwForce.cpp
...moeba/serialization/tests/TestSerializeAmoebaVdwForce.cpp
+1
-1
plugins/amoeba/serialization/tests/TestSerializeAmoebaWcaDispersionForce.cpp
...alization/tests/TestSerializeAmoebaWcaDispersionForce.cpp
+1
-1
plugins/freeEnergy/platforms/cuda/tests/TestCudaGBVISoftcoreForce.cpp
...Energy/platforms/cuda/tests/TestCudaGBVISoftcoreForce.cpp
+1
-1
plugins/freeEnergy/platforms/cuda/tests/TestCudaLJSoftcoreForce.cpp
...eeEnergy/platforms/cuda/tests/TestCudaLJSoftcoreForce.cpp
+1
-1
plugins/freeEnergy/platforms/cuda/tests/TestCudaOBCSoftcoreForce.cpp
...eEnergy/platforms/cuda/tests/TestCudaOBCSoftcoreForce.cpp
+1
-1
plugins/freeEnergy/platforms/reference/tests/TestReferenceGBVISoftcoreForce.cpp
...tforms/reference/tests/TestReferenceGBVISoftcoreForce.cpp
+1
-1
plugins/freeEnergy/platforms/reference/tests/TestReferenceLJSoftcoreForce.cpp
...latforms/reference/tests/TestReferenceLJSoftcoreForce.cpp
+1
-1
plugins/freeEnergy/platforms/reference/tests/TestReferenceOBCSoftcoreForce.cpp
...atforms/reference/tests/TestReferenceOBCSoftcoreForce.cpp
+1
-1
plugins/freeEnergy/platforms/reference/tests/TestReferenceSoftcoreForce.h
...gy/platforms/reference/tests/TestReferenceSoftcoreForce.h
+1
-1
plugins/freeEnergy/serialization/tests/TestSerializeFreeEnergyGBSAOBCSoftcoreForce.cpp
...ion/tests/TestSerializeFreeEnergyGBSAOBCSoftcoreForce.cpp
+1
-1
plugins/freeEnergy/serialization/tests/TestSerializeFreeEnergyGBVISoftcoreForce.cpp
...zation/tests/TestSerializeFreeEnergyGBVISoftcoreForce.cpp
+1
-1
plugins/freeEnergy/serialization/tests/TestSerializeFreeEnergyNonbondedSoftcoreForce.cpp
...n/tests/TestSerializeFreeEnergyNonbondedSoftcoreForce.cpp
+1
-1
plugins/rpmd/platforms/opencl/tests/TestOpenCLRpmd.cpp
plugins/rpmd/platforms/opencl/tests/TestOpenCLRpmd.cpp
+1
-3
plugins/rpmd/platforms/reference/tests/TestReferenceRpmd.cpp
plugins/rpmd/platforms/reference/tests/TestReferenceRpmd.cpp
+1
-1
serialization/tests/TestSerializationNode.cpp
serialization/tests/TestSerializationNode.cpp
+1
-1
serialization/tests/TestSerializeAndersenThermostat.cpp
serialization/tests/TestSerializeAndersenThermostat.cpp
+1
-1
serialization/tests/TestSerializeCMAPTorsion.cpp
serialization/tests/TestSerializeCMAPTorsion.cpp
+1
-1
serialization/tests/TestSerializeCMMotionRemover.cpp
serialization/tests/TestSerializeCMMotionRemover.cpp
+1
-1
No files found.
plugins/amoeba/serialization/tests/TestSerializeAmoebaTorsionTorsionForce.cpp
View file @
a566a074
...
@@ -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/AmoebaTorsionTorsionForce.h"
#include "openmm/AmoebaTorsionTorsionForce.h"
#include "openmm/serialization/XmlSerializer.h"
#include "openmm/serialization/XmlSerializer.h"
#include <iostream>
#include <iostream>
...
...
plugins/amoeba/serialization/tests/TestSerializeAmoebaUreyBradleyForce.cpp
View file @
a566a074
...
@@ -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/AmoebaUreyBradleyForce.h"
#include "openmm/AmoebaUreyBradleyForce.h"
#include "openmm/serialization/XmlSerializer.h"
#include "openmm/serialization/XmlSerializer.h"
#include <iostream>
#include <iostream>
...
...
plugins/amoeba/serialization/tests/TestSerializeAmoebaVdwForce.cpp
View file @
a566a074
...
@@ -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/AmoebaVdwForce.h"
#include "openmm/AmoebaVdwForce.h"
#include "openmm/serialization/XmlSerializer.h"
#include "openmm/serialization/XmlSerializer.h"
#include <iostream>
#include <iostream>
...
...
plugins/amoeba/serialization/tests/TestSerializeAmoebaWcaDispersionForce.cpp
View file @
a566a074
...
@@ -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/AmoebaWcaDispersionForce.h"
#include "openmm/AmoebaWcaDispersionForce.h"
#include "openmm/serialization/XmlSerializer.h"
#include "openmm/serialization/XmlSerializer.h"
#include <iostream>
#include <iostream>
...
...
plugins/freeEnergy/platforms/cuda/tests/TestCudaGBVISoftcoreForce.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/System.h"
#include "openmm/System.h"
#include "openmm/Context.h"
#include "openmm/Context.h"
...
...
plugins/freeEnergy/platforms/cuda/tests/TestCudaLJSoftcoreForce.cpp
View file @
a566a074
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
* 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"
...
...
plugins/freeEnergy/platforms/cuda/tests/TestCudaOBCSoftcoreForce.cpp
View file @
a566a074
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
*/
*/
#include "openmm/System.h"
#include "openmm/System.h"
#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"
...
...
plugins/freeEnergy/platforms/reference/tests/TestReferenceGBVISoftcoreForce.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/GBVISoftcoreForce.h"
#include "openmm/GBVISoftcoreForce.h"
...
...
plugins/freeEnergy/platforms/reference/tests/TestReferenceLJSoftcoreForce.cpp
View file @
a566a074
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
* 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"
...
...
plugins/freeEnergy/platforms/reference/tests/TestReferenceOBCSoftcoreForce.cpp
View file @
a566a074
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
* 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"
...
...
plugins/freeEnergy/platforms/reference/tests/TestReferenceSoftcoreForce.h
View file @
a566a074
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,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"
...
...
plugins/freeEnergy/serialization/tests/TestSerializeFreeEnergyGBSAOBCSoftcoreForce.cpp
View file @
a566a074
...
@@ -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/GBSAOBCSoftcoreForce.h"
#include "openmm/GBSAOBCSoftcoreForce.h"
#include "openmm/serialization/XmlSerializer.h"
#include "openmm/serialization/XmlSerializer.h"
#include <iostream>
#include <iostream>
...
...
plugins/freeEnergy/serialization/tests/TestSerializeFreeEnergyGBVISoftcoreForce.cpp
View file @
a566a074
...
@@ -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/GBVISoftcoreForce.h"
#include "openmm/GBVISoftcoreForce.h"
#include "openmm/serialization/XmlSerializer.h"
#include "openmm/serialization/XmlSerializer.h"
#include <iostream>
#include <iostream>
...
...
plugins/freeEnergy/serialization/tests/TestSerializeFreeEnergyNonbondedSoftcoreForce.cpp
View file @
a566a074
...
@@ -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/NonbondedSoftcoreForce.h"
#include "openmm/NonbondedSoftcoreForce.h"
#include "openmm/serialization/XmlSerializer.h"
#include "openmm/serialization/XmlSerializer.h"
#include <iostream>
#include <iostream>
...
...
plugins/rpmd/platforms/opencl/tests/TestOpenCLRpmd.cpp
View file @
a566a074
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
* This tests the OpenCL implementation of RPMDIntegrator.
* This tests the OpenCL implementation of RPMDIntegrator.
*/
*/
#include "
../../../tests
/AssertionUtilities.h"
#include "
openmm/internal
/AssertionUtilities.h"
#include "openmm/Context.h"
#include "openmm/Context.h"
#include "openmm/CustomNonbondedForce.h"
#include "openmm/CustomNonbondedForce.h"
#include "openmm/HarmonicBondForce.h"
#include "openmm/HarmonicBondForce.h"
...
@@ -73,7 +73,6 @@ void testFreeParticles() {
...
@@ -73,7 +73,6 @@ void testFreeParticles() {
vector
<
double
>
ke
(
numCopies
,
0.0
);
vector
<
double
>
ke
(
numCopies
,
0.0
);
vector
<
double
>
rg
(
numParticles
,
0.0
);
vector
<
double
>
rg
(
numParticles
,
0.0
);
const
RealOpenMM
hbar
=
1.054571628e-34
*
AVOGADRO
/
(
1000
*
1e-12
);
const
RealOpenMM
hbar
=
1.054571628e-34
*
AVOGADRO
/
(
1000
*
1e-12
);
const
double
wn
=
numCopies
*
BOLTZ
*
temperature
/
hbar
;
for
(
int
i
=
0
;
i
<
numSteps
;
i
++
)
{
for
(
int
i
=
0
;
i
<
numSteps
;
i
++
)
{
integ
.
step
(
1
);
integ
.
step
(
1
);
vector
<
State
>
state
(
numCopies
);
vector
<
State
>
state
(
numCopies
);
...
@@ -167,7 +166,6 @@ void testParaHydrogen() {
...
@@ -167,7 +166,6 @@ void testParaHydrogen() {
const
double
invBoxSize
=
1.0
/
boxSize
;
const
double
invBoxSize
=
1.0
/
boxSize
;
double
meanKE
=
0.0
;
double
meanKE
=
0.0
;
const
RealOpenMM
hbar
=
1.054571628e-34
*
AVOGADRO
/
(
1000
*
1e-12
);
const
RealOpenMM
hbar
=
1.054571628e-34
*
AVOGADRO
/
(
1000
*
1e-12
);
const
double
wn
=
numCopies
*
BOLTZ
*
temperature
/
hbar
;
for
(
int
step
=
0
;
step
<
numSteps
;
step
++
)
{
for
(
int
step
=
0
;
step
<
numSteps
;
step
++
)
{
integ
.
step
(
20
);
integ
.
step
(
20
);
vector
<
State
>
states
(
numCopies
);
vector
<
State
>
states
(
numCopies
);
...
...
plugins/rpmd/platforms/reference/tests/TestReferenceRpmd.cpp
View file @
a566a074
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
* This tests the Reference implementation of RPMDIntegrator.
* This tests the Reference implementation of RPMDIntegrator.
*/
*/
#include "
../../../tests
/AssertionUtilities.h"
#include "
openmm/internal
/AssertionUtilities.h"
#include "openmm/Context.h"
#include "openmm/Context.h"
#include "openmm/HarmonicBondForce.h"
#include "openmm/HarmonicBondForce.h"
#include "openmm/Platform.h"
#include "openmm/Platform.h"
...
...
serialization/tests/TestSerializationNode.cpp
View file @
a566a074
...
@@ -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/serialization/SerializationNode.h"
#include "openmm/serialization/SerializationNode.h"
#include <iostream>
#include <iostream>
...
...
serialization/tests/TestSerializeAndersenThermostat.cpp
View file @
a566a074
...
@@ -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/AndersenThermostat.h"
#include "openmm/AndersenThermostat.h"
#include "openmm/serialization/XmlSerializer.h"
#include "openmm/serialization/XmlSerializer.h"
#include <iostream>
#include <iostream>
...
...
serialization/tests/TestSerializeCMAPTorsion.cpp
View file @
a566a074
...
@@ -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/CMAPTorsionForce.h"
#include "openmm/CMAPTorsionForce.h"
#include "openmm/serialization/XmlSerializer.h"
#include "openmm/serialization/XmlSerializer.h"
#include <iostream>
#include <iostream>
...
...
serialization/tests/TestSerializeCMMotionRemover.cpp
View file @
a566a074
...
@@ -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/CMMotionRemover.h"
#include "openmm/CMMotionRemover.h"
#include "openmm/serialization/XmlSerializer.h"
#include "openmm/serialization/XmlSerializer.h"
#include <iostream>
#include <iostream>
...
...
Prev
1
…
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