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
01a6ddd4
"vscode:/vscode.git/clone" did not exist on "1408756a88e52a25196b759eaf8db89d2b51b5a1"
Commit
01a6ddd4
authored
Jan 30, 2016
by
Saurabh Belsare
Browse files
Setting up the getLabFrameDipoleMoments in cuda
parent
07f6ba41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
plugins/amoeba/platforms/cuda/src/AmoebaCudaKernels.cpp
plugins/amoeba/platforms/cuda/src/AmoebaCudaKernels.cpp
+6
-6
No files found.
plugins/amoeba/platforms/cuda/src/AmoebaCudaKernels.cpp
View file @
01a6ddd4
...
@@ -1779,16 +1779,16 @@ void CudaCalcAmoebaMultipoleForceKernel::getLabFramePermanentDipoles(ContextImpl
...
@@ -1779,16 +1779,16 @@ void CudaCalcAmoebaMultipoleForceKernel::getLabFramePermanentDipoles(ContextImpl
dipoles
.
resize
(
numParticles
);
dipoles
.
resize
(
numParticles
);
const
vector
<
int
>&
order
=
cu
.
getAtomIndex
();
const
vector
<
int
>&
order
=
cu
.
getAtomIndex
();
if
(
cu
.
getUseDoublePrecision
())
{
if
(
cu
.
getUseDoublePrecision
())
{
vector
<
double
>
d
;
vector
<
double
>
labDipoleVec
;
induced
Dipole
->
download
(
d
);
labFrame
Dipole
s
->
download
(
labDipoleVec
);
for
(
int
i
=
0
;
i
<
numParticles
;
i
++
)
for
(
int
i
=
0
;
i
<
numParticles
;
i
++
)
dipoles
[
order
[
i
]]
=
Vec3
(
d
[
3
*
i
],
d
[
3
*
i
+
1
],
d
[
3
*
i
+
2
]);
dipoles
[
order
[
i
]]
=
Vec3
(
labDipoleVec
[
3
*
i
],
labDipoleVec
[
3
*
i
+
1
],
labDipoleVec
[
3
*
i
+
2
]);
}
}
else
{
else
{
vector
<
float
>
d
;
vector
<
float
>
labDipoleVec
;
induced
Dipole
->
download
(
d
);
labFrame
Dipole
s
->
download
(
labDipoleVec
);
for
(
int
i
=
0
;
i
<
numParticles
;
i
++
)
for
(
int
i
=
0
;
i
<
numParticles
;
i
++
)
dipoles
[
order
[
i
]]
=
Vec3
(
d
[
3
*
i
],
d
[
3
*
i
+
1
],
d
[
3
*
i
+
2
]);
dipoles
[
order
[
i
]]
=
Vec3
(
labDipoleVec
[
3
*
i
],
labDipoleVec
[
3
*
i
+
1
],
labDipoleVec
[
3
*
i
+
2
]);
}
}
}
}
...
...
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