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
5adaa15e
"platforms/opencl/tests/TestOpenCLCompoundIntegrator.cpp" did not exist on "85da5e0f9018719e95350c76b483a2160c84d9d3"
Commit
5adaa15e
authored
Mar 07, 2011
by
Mark Friedrichs
Browse files
Only call kCalculateCMAPTorsionForces() if numTorsions > 0
parent
b66af9aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
platforms/cuda/src/CudaKernels.cpp
platforms/cuda/src/CudaKernels.cpp
+2
-1
No files found.
platforms/cuda/src/CudaKernels.cpp
View file @
5adaa15e
...
...
@@ -645,7 +645,8 @@ void CudaCalcCMAPTorsionForceKernel::initialize(const System& system, const CMAP
}
double
CudaCalcCMAPTorsionForceKernel
::
execute
(
ContextImpl
&
context
,
bool
includeForces
,
bool
includeEnergy
)
{
kCalculateCMAPTorsionForces
(
data
.
gpu
,
*
coefficients
,
*
mapPositions
,
*
torsionIndices
,
*
torsionMaps
);
if
(
numTorsions
)
kCalculateCMAPTorsionForces
(
data
.
gpu
,
*
coefficients
,
*
mapPositions
,
*
torsionIndices
,
*
torsionMaps
);
return
0.0
;
}
...
...
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