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
106dc571
"...ssh:/git@developer.sourcefind.cn:2222/tsoc/openmm.git" did not exist on "eb77eb646b8e628a028838fb4882b4485efb723d"
Commit
106dc571
authored
May 11, 2012
by
Peter Eastman
Browse files
Bug fix to checkpointing
parent
188bf2ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
platforms/opencl/src/OpenCLKernels.cpp
platforms/opencl/src/OpenCLKernels.cpp
+2
-0
No files found.
platforms/opencl/src/OpenCLKernels.cpp
View file @
106dc571
...
@@ -234,6 +234,7 @@ void OpenCLUpdateStateDataKernel::createCheckpoint(ContextImpl& context, ostream
...
@@ -234,6 +234,7 @@ void OpenCLUpdateStateDataKernel::createCheckpoint(ContextImpl& context, ostream
mm_float4
box
=
cl
.
getPeriodicBoxSize
();
mm_float4
box
=
cl
.
getPeriodicBoxSize
();
stream
.
write
((
char
*
)
&
box
,
sizeof
(
mm_float4
));
stream
.
write
((
char
*
)
&
box
,
sizeof
(
mm_float4
));
cl
.
getIntegrationUtilities
().
createCheckpoint
(
stream
);
cl
.
getIntegrationUtilities
().
createCheckpoint
(
stream
);
SimTKOpenMMUtilities
::
createCheckpoint
(
stream
);
}
}
void
OpenCLUpdateStateDataKernel
::
loadCheckpoint
(
ContextImpl
&
context
,
istream
&
stream
)
{
void
OpenCLUpdateStateDataKernel
::
loadCheckpoint
(
ContextImpl
&
context
,
istream
&
stream
)
{
...
@@ -252,6 +253,7 @@ void OpenCLUpdateStateDataKernel::loadCheckpoint(ContextImpl& context, istream&
...
@@ -252,6 +253,7 @@ void OpenCLUpdateStateDataKernel::loadCheckpoint(ContextImpl& context, istream&
stream
.
read
((
char
*
)
&
box
,
sizeof
(
mm_float4
));
stream
.
read
((
char
*
)
&
box
,
sizeof
(
mm_float4
));
cl
.
setPeriodicBoxSize
(
box
.
x
,
box
.
y
,
box
.
z
);
cl
.
setPeriodicBoxSize
(
box
.
x
,
box
.
y
,
box
.
z
);
cl
.
getIntegrationUtilities
().
loadCheckpoint
(
stream
);
cl
.
getIntegrationUtilities
().
loadCheckpoint
(
stream
);
SimTKOpenMMUtilities
::
loadCheckpoint
(
stream
);
}
}
void
OpenCLApplyConstraintsKernel
::
initialize
(
const
System
&
system
)
{
void
OpenCLApplyConstraintsKernel
::
initialize
(
const
System
&
system
)
{
...
...
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