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
fdce64f7
Commit
fdce64f7
authored
Jul 19, 2013
by
peastman
Browse files
Merge pull request #63 from peastman/master
Fixed a bug in CustomIntegrator related to atom reordering
parents
3a2299a5
603683e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
platforms/cuda/src/CudaKernels.cpp
platforms/cuda/src/CudaKernels.cpp
+4
-0
platforms/opencl/src/OpenCLKernels.cpp
platforms/opencl/src/OpenCLKernels.cpp
+4
-0
No files found.
platforms/cuda/src/CudaKernels.cpp
View file @
fdce64f7
...
...
@@ -5222,6 +5222,10 @@ void CudaIntegrateCustomStepKernel::execute(ContextImpl& context, CustomIntegrat
cu
.
setTime
(
cu
.
getTime
()
+
integrator
.
getStepSize
());
cu
.
setStepCount
(
cu
.
getStepCount
()
+
1
);
cu
.
reorderAtoms
();
if
(
cu
.
getAtomsWereReordered
())
{
forcesAreValid
=
false
;
validSavedForces
.
clear
();
}
}
double
CudaIntegrateCustomStepKernel
::
computeKineticEnergy
(
ContextImpl
&
context
,
CustomIntegrator
&
integrator
,
bool
&
forcesAreValid
)
{
...
...
platforms/opencl/src/OpenCLKernels.cpp
View file @
fdce64f7
...
...
@@ -5444,6 +5444,10 @@ void OpenCLIntegrateCustomStepKernel::execute(ContextImpl& context, CustomIntegr
cl
.
setTime
(
cl
.
getTime
()
+
integrator
.
getStepSize
());
cl
.
setStepCount
(
cl
.
getStepCount
()
+
1
);
cl
.
reorderAtoms
();
if
(
cl
.
getAtomsWereReordered
())
{
forcesAreValid
=
false
;
validSavedForces
.
clear
();
}
// Reduce UI lag.
...
...
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