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
285a4d88
Commit
285a4d88
authored
Feb 11, 2012
by
Peter Eastman
Browse files
LocalEnergyMinimizer does not move massless particles
parent
c3ca5fc0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
openmmapi/src/LocalEnergyMinimizer.cpp
openmmapi/src/LocalEnergyMinimizer.cpp
+1
-1
No files found.
openmmapi/src/LocalEnergyMinimizer.cpp
View file @
285a4d88
...
...
@@ -63,7 +63,7 @@ static lbfgsfloatval_t evaluate(void *instance, const lbfgsfloatval_t *x, lbfgsf
State
state
=
context
.
getState
(
State
::
Forces
|
State
::
Energy
);
const
vector
<
Vec3
>&
forces
=
state
.
getForces
();
for
(
int
i
=
0
;
i
<
numParticles
;
i
++
)
{
if
(
system
.
isVirtualSite
(
i
)
)
{
if
(
system
.
getParticleMass
(
i
)
==
0
)
{
g
[
3
*
i
]
=
0.0
;
g
[
3
*
i
+
1
]
=
0.0
;
g
[
3
*
i
+
2
]
=
0.0
;
...
...
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