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
f75bf1bd
Commit
f75bf1bd
authored
Jan 20, 2015
by
peastman
Browse files
Check for nan positions was being done incorrectly
parent
d0e168ad
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 @
f75bf1bd
...
...
@@ -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