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
5f509089
Commit
5f509089
authored
Oct 24, 2016
by
peastman
Committed by
GitHub
Oct 24, 2016
Browse files
Merge pull request #1647 from peastman/polarizationzero
Support multipoles with polarization set to 0
parents
9480ec98
effb1f57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
plugins/amoeba/platforms/cuda/src/kernels/multipoleElectrostatics.cu
...eba/platforms/cuda/src/kernels/multipoleElectrostatics.cu
+3
-3
No files found.
plugins/amoeba/platforms/cuda/src/kernels/multipoleElectrostatics.cu
View file @
5f509089
...
@@ -107,9 +107,9 @@ __device__ void computeOneInteraction(AtomData& atom1, AtomData& atom2, bool has
...
@@ -107,9 +107,9 @@ __device__ void computeOneInteraction(AtomData& atom1, AtomData& atom2, bool has
real
dmp
=
atom1
.
damp
*
atom2
.
damp
;
real
dmp
=
atom1
.
damp
*
atom2
.
damp
;
real
a
=
min
(
atom1
.
thole
,
atom2
.
thole
);
real
a
=
min
(
atom1
.
thole
,
atom2
.
thole
);
real
u
=
fabs
(
dmp
)
>
1.0e-5
f
?
r
/
dmp
:
1e10
f
;
real
u
=
r
/
dmp
;
real
au3
=
a
*
u
*
u
*
u
;
real
au3
=
fabs
(
dmp
)
>
1.0e-5
f
?
a
*
u
*
u
*
u
:
0
;
real
expau3
=
au3
<
50
?
EXP
(
-
au3
)
:
0
;
real
expau3
=
fabs
(
dmp
)
>
1.0e-5
f
?
EXP
(
-
au3
)
:
0
;
real
a2u6
=
au3
*
au3
;
real
a2u6
=
au3
*
au3
;
real
a3u9
=
a2u6
*
au3
;
real
a3u9
=
a2u6
*
au3
;
// Thole damping factors for energies
// Thole damping factors for energies
...
...
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