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
7e2f9504
"...ssh:/git@developer.sourcefind.cn:2222/tsoc/openmm.git" did not exist on "c29a33221fffa9987e0a922d5d5aa5893fc9b856"
Commit
7e2f9504
authored
Jun 22, 2010
by
Peter Eastman
Browse files
Fixed error reported by Valgrind.
parent
a28c8cf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
platforms/reference/src/SimTKReference/ReferenceCustomGBIxn.cpp
...rms/reference/src/SimTKReference/ReferenceCustomGBIxn.cpp
+5
-3
No files found.
platforms/reference/src/SimTKReference/ReferenceCustomGBIxn.cpp
View file @
7e2f9504
...
@@ -123,9 +123,11 @@ ReferenceCustomGBIxn::~ReferenceCustomGBIxn( ){
...
@@ -123,9 +123,11 @@ ReferenceCustomGBIxn::~ReferenceCustomGBIxn( ){
void
ReferenceCustomGBIxn
::
setPeriodic
(
RealOpenMM
*
boxSize
)
{
void
ReferenceCustomGBIxn
::
setPeriodic
(
RealOpenMM
*
boxSize
)
{
assert
(
boxSize
[
0
]
>=
2.0
*
cutoffDistance
);
if
(
cutoff
)
{
assert
(
boxSize
[
1
]
>=
2.0
*
cutoffDistance
);
assert
(
boxSize
[
0
]
>=
2.0
*
cutoffDistance
);
assert
(
boxSize
[
2
]
>=
2.0
*
cutoffDistance
);
assert
(
boxSize
[
1
]
>=
2.0
*
cutoffDistance
);
assert
(
boxSize
[
2
]
>=
2.0
*
cutoffDistance
);
}
periodic
=
true
;
periodic
=
true
;
periodicBoxSize
[
0
]
=
boxSize
[
0
];
periodicBoxSize
[
0
]
=
boxSize
[
0
];
periodicBoxSize
[
1
]
=
boxSize
[
1
];
periodicBoxSize
[
1
]
=
boxSize
[
1
];
...
...
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