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
41230a89
"vscode:/vscode.git/clone" did not exist on "077a93c8e715650f5501a9c10f07c1183fadbef1"
Commit
41230a89
authored
Jun 26, 2018
by
Peter Eastman
Browse files
Bug fix
parent
7c6f0b4b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
platforms/cuda/src/CudaKernels.cpp
platforms/cuda/src/CudaKernels.cpp
+2
-1
platforms/opencl/src/OpenCLKernels.cpp
platforms/opencl/src/OpenCLKernels.cpp
+2
-1
No files found.
platforms/cuda/src/CudaKernels.cpp
View file @
41230a89
...
@@ -1631,7 +1631,8 @@ void CudaCalcNonbondedForceKernel::initialize(const System& system, const Nonbon
...
@@ -1631,7 +1631,8 @@ void CudaCalcNonbondedForceKernel::initialize(const System& system, const Nonbon
alpha
=
0
;
alpha
=
0
;
ewaldSelfEnergy
=
0.0
;
ewaldSelfEnergy
=
0.0
;
map
<
string
,
string
>
paramsDefines
;
map
<
string
,
string
>
paramsDefines
;
if (force.getNumParticleParameterOffsets() > 0 || force.getNumExceptionParameterOffsets() > 0)
hasOffsets
=
(
force
.
getNumParticleParameterOffsets
()
>
0
||
force
.
getNumExceptionParameterOffsets
()
>
0
);
if
(
hasOffsets
)
paramsDefines
[
"HAS_OFFSETS"
]
=
"1"
;
paramsDefines
[
"HAS_OFFSETS"
]
=
"1"
;
if
(
nonbondedMethod
==
Ewald
)
{
if
(
nonbondedMethod
==
Ewald
)
{
// Compute the Ewald parameters.
// Compute the Ewald parameters.
...
...
platforms/opencl/src/OpenCLKernels.cpp
View file @
41230a89
...
@@ -1623,7 +1623,8 @@ void OpenCLCalcNonbondedForceKernel::initialize(const System& system, const Nonb
...
@@ -1623,7 +1623,8 @@ void OpenCLCalcNonbondedForceKernel::initialize(const System& system, const Nonb
alpha = 0;
alpha = 0;
ewaldSelfEnergy = 0.0;
ewaldSelfEnergy = 0.0;
map<string, string> paramsDefines;
map<string, string> paramsDefines;
if (force.getNumParticleParameterOffsets() > 0 || force.getNumExceptionParameterOffsets() > 0)
hasOffsets = (force.getNumParticleParameterOffsets() > 0 || force.getNumExceptionParameterOffsets() > 0);
if (hasOffsets)
paramsDefines["HAS_OFFSETS"] = "1";
paramsDefines["HAS_OFFSETS"] = "1";
if (nonbondedMethod == Ewald) {
if (nonbondedMethod == Ewald) {
// Compute the Ewald parameters.
// Compute the Ewald parameters.
...
...
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