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
10977800
Unverified
Commit
10977800
authored
Jan 15, 2020
by
peastman
Committed by
GitHub
Jan 15, 2020
Browse files
Merge pull request #2524 from peastman/forcesvalid
Fixed error in BAOAB on CUDA and OpenCL
parents
fd263401
025ec2f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
openmmapi/src/BAOABLangevinIntegrator.cpp
openmmapi/src/BAOABLangevinIntegrator.cpp
+3
-1
No files found.
openmmapi/src/BAOABLangevinIntegrator.cpp
View file @
10977800
...
...
@@ -73,6 +73,7 @@ vector<string> BAOABLangevinIntegrator::getKernelNames() {
}
double
BAOABLangevinIntegrator
::
computeKineticEnergy
()
{
forcesAreValid
=
false
;
return
kernel
.
getAs
<
IntegrateBAOABStepKernel
>
().
computeKineticEnergy
(
*
context
,
*
this
);
}
...
...
@@ -84,7 +85,8 @@ void BAOABLangevinIntegrator::step(int steps) {
if
(
context
==
NULL
)
throw
OpenMMException
(
"This Integrator is not bound to a context!"
);
for
(
int
i
=
0
;
i
<
steps
;
++
i
)
{
context
->
updateContextState
();
if
(
context
->
updateContextState
())
forcesAreValid
=
false
;
kernel
.
getAs
<
IntegrateBAOABStepKernel
>
().
execute
(
*
context
,
*
this
,
forcesAreValid
);
}
}
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