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
24dd6efa
Commit
24dd6efa
authored
Jul 21, 2017
by
peastman
Committed by
GitHub
Jul 21, 2017
Browse files
Merge pull request #1861 from peastman/periodiccv
Fixed an incorrect exception in CustomCVForce
parents
0827ad50
6520515f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
openmmapi/src/CustomCVForceImpl.cpp
openmmapi/src/CustomCVForceImpl.cpp
+3
-0
No files found.
openmmapi/src/CustomCVForceImpl.cpp
View file @
24dd6efa
...
@@ -53,6 +53,9 @@ void CustomCVForceImpl::initialize(ContextImpl& context) {
...
@@ -53,6 +53,9 @@ void CustomCVForceImpl::initialize(ContextImpl& context) {
// Construct the inner system used to evaluate collective variables.
// Construct the inner system used to evaluate collective variables.
const
System
&
system
=
context
.
getSystem
();
const
System
&
system
=
context
.
getSystem
();
Vec3
a
,
b
,
c
;
system
.
getDefaultPeriodicBoxVectors
(
a
,
b
,
c
);
innerSystem
.
setDefaultPeriodicBoxVectors
(
a
,
b
,
c
);
for
(
int
i
=
0
;
i
<
system
.
getNumParticles
();
i
++
)
for
(
int
i
=
0
;
i
<
system
.
getNumParticles
();
i
++
)
innerSystem
.
addParticle
(
system
.
getParticleMass
(
i
));
innerSystem
.
addParticle
(
system
.
getParticleMass
(
i
));
for
(
int
i
=
0
;
i
<
owner
.
getNumCollectiveVariables
();
i
++
)
{
for
(
int
i
=
0
;
i
<
owner
.
getNumCollectiveVariables
();
i
++
)
{
...
...
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