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
c0538e1f
Commit
c0538e1f
authored
Oct 18, 2016
by
Peter Eastman
Browse files
Added a missing fabs()
parent
805bba93
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
plugins/amoeba/platforms/cuda/src/kernels/multipoleInducedField.cu
...moeba/platforms/cuda/src/kernels/multipoleInducedField.cu
+1
-1
No files found.
plugins/amoeba/platforms/cuda/src/kernels/multipoleInducedField.cu
View file @
c0538e1f
...
...
@@ -729,7 +729,7 @@ extern "C" __global__ void solveDIISMatrix(int iteration, const real* __restrict
real
mean
=
0
;
for
(
int
i
=
0
;
i
<
numPrev
;
i
++
)
for
(
int
j
=
0
;
j
<
numPrev
;
j
++
)
mean
+=
b
[
i
+
1
][
j
+
1
];
mean
+=
fabs
(
b
[
i
+
1
][
j
+
1
]
)
;
mean
/=
numPrev
*
numPrev
;
b
[
0
][
0
]
=
0
;
for
(
int
i
=
1
;
i
<
rank
;
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