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
084b5c97
"wrappers/vscode:/vscode.git/clone" did not exist on "9a167d05a23e10b952dc10ec4ab6147f8a2cb779"
Commit
084b5c97
authored
Apr 02, 2012
by
Mark Friedrichs
Browse files
Force grid(0,0,0) element to 0
parent
aab77399
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
plugins/amoeba/platforms/cuda/src/kernels/kCalculateAmoebaCudaPME.cu
...eba/platforms/cuda/src/kernels/kCalculateAmoebaCudaPME.cu
+3
-1
No files found.
plugins/amoeba/platforms/cuda/src/kernels/kCalculateAmoebaCudaPME.cu
View file @
084b5c97
...
...
@@ -435,8 +435,10 @@ void kAmoebaReciprocalConvolution_kernel()
int
remainder
=
index
-
kx
*
cSim
.
pmeGridSize
.
y
*
cSim
.
pmeGridSize
.
z
;
int
ky
=
remainder
/
cSim
.
pmeGridSize
.
z
;
int
kz
=
remainder
-
ky
*
cSim
.
pmeGridSize
.
z
;
if
(
kx
==
0
&&
ky
==
0
&&
kz
==
0
)
if
(
kx
==
0
&&
ky
==
0
&&
kz
==
0
){
cSim
.
pPmeGrid
[
index
]
=
make_cuComplex
(
0.0
f
,
0.0
f
);
continue
;
}
int
mx
=
(
kx
<
(
cSim
.
pmeGridSize
.
x
+
1
)
/
2
)
?
kx
:
(
kx
-
cSim
.
pmeGridSize
.
x
);
int
my
=
(
ky
<
(
cSim
.
pmeGridSize
.
y
+
1
)
/
2
)
?
ky
:
(
ky
-
cSim
.
pmeGridSize
.
y
);
int
mz
=
(
kz
<
(
cSim
.
pmeGridSize
.
z
+
1
)
/
2
)
?
kz
:
(
kz
-
cSim
.
pmeGridSize
.
z
);
...
...
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