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
960c22af
"openmmapi/vscode:/vscode.git/clone" did not exist on "066cdd6012b68be551ecfdf8a5b5966c7824b4b7"
Commit
960c22af
authored
Aug 12, 2010
by
Peter Eastman
Browse files
Minor bug fix
parent
a711ce2a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
platforms/cuda/src/CudaKernels.cpp
platforms/cuda/src/CudaKernels.cpp
+2
-5
No files found.
platforms/cuda/src/CudaKernels.cpp
View file @
960c22af
...
@@ -48,16 +48,13 @@ void CudaCalcForcesAndEnergyKernel::beginComputation(ContextImpl& context, bool
...
@@ -48,16 +48,13 @@ void CudaCalcForcesAndEnergyKernel::beginComputation(ContextImpl& context, bool
_gpuContext
*
gpu
=
data
.
gpu
;
_gpuContext
*
gpu
=
data
.
gpu
;
if
(
data
.
nonbondedMethod
!=
NO_CUTOFF
&&
data
.
computeForceCount
%
100
==
0
)
if
(
data
.
nonbondedMethod
!=
NO_CUTOFF
&&
data
.
computeForceCount
%
100
==
0
)
gpuReorderAtoms
(
gpu
);
gpuReorderAtoms
(
gpu
);
if
(
includeForces
)
data
.
computeForceCount
++
;
data
.
computeForceCount
++
;
if
(
gpu
->
bIncludeGBSA
||
gpu
->
bIncludeGBVI
)
if
(
gpu
->
bIncludeGBSA
||
gpu
->
bIncludeGBVI
)
kClearBornSumAndForces
(
gpu
);
kClearBornSumAndForces
(
gpu
);
else
if
(
includeForces
)
else
if
(
includeForces
)
kClearForces
(
gpu
);
kClearForces
(
gpu
);
if
(
includeEnergy
)
{
if
(
includeEnergy
)
data
.
stepCount
++
;
kClearEnergy
(
gpu
);
kClearEnergy
(
gpu
);
}
}
}
double
CudaCalcForcesAndEnergyKernel
::
finishComputation
(
ContextImpl
&
context
,
bool
includeForces
,
bool
includeEnergy
)
{
double
CudaCalcForcesAndEnergyKernel
::
finishComputation
(
ContextImpl
&
context
,
bool
includeForces
,
bool
includeEnergy
)
{
...
...
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