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
b51e05a8
Commit
b51e05a8
authored
Jan 20, 2015
by
peastman
Browse files
Merge pull request #791 from peastman/bug
Check for nan positions was being done incorrectly
parents
f83da363
f75bf1bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
platforms/cpu/src/CpuKernels.cpp
platforms/cpu/src/CpuKernels.cpp
+2
-2
No files found.
platforms/cpu/src/CpuKernels.cpp
View file @
b51e05a8
...
...
@@ -169,8 +169,8 @@ public:
// Check for invalid positions.
for
(
int
i
=
4
*
start
;
i
<
4
*
end
;
i
++
)
if
(
posq
[
i
]
!=
posq
[
i
])
for
(
int
i
=
4
*
start
;
i
<
4
*
end
;
i
+=
4
)
if
(
posq
[
i
]
!=
posq
[
i
]
||
posq
[
i
+
1
]
!=
posq
[
i
+
1
]
||
posq
[
i
+
2
]
!=
posq
[
i
+
2
]
)
positionsValid
=
false
;
// Clear the forces.
...
...
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