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
90007de2
"platforms/reference/vscode:/vscode.git/clone" did not exist on "8190f24389d8c025f3dc99c99bd94c961c3114d9"
Commit
90007de2
authored
Mar 21, 2012
by
Peter Eastman
Browse files
Added option to RPMDIntegrator.getState() to specify force groups
parent
6f6bee35
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
plugins/rpmd/openmmapi/include/openmm/RPMDIntegrator.h
plugins/rpmd/openmmapi/include/openmm/RPMDIntegrator.h
+3
-1
plugins/rpmd/openmmapi/src/RPMDIntegrator.cpp
plugins/rpmd/openmmapi/src/RPMDIntegrator.cpp
+2
-2
No files found.
plugins/rpmd/openmmapi/include/openmm/RPMDIntegrator.h
View file @
90007de2
...
@@ -145,8 +145,10 @@ public:
...
@@ -145,8 +145,10 @@ public:
* @param enforcePeriodicBox if false, the position of each particle will be whatever position
* @param enforcePeriodicBox if false, the position of each particle will be whatever position
* is stored by the integrator, regardless of periodic boundary conditions. If true, particle
* is stored by the integrator, regardless of periodic boundary conditions. If true, particle
* positions will be translated so the center of every molecule lies in the same periodic box.
* positions will be translated so the center of every molecule lies in the same periodic box.
* @param groups a set of bit flags for which force groups to include when computing forces
* and energies. Group i will be included if (groups&(1<<i)) != 0. The default value includes all groups.
*/
*/
State
getState
(
int
copy
,
int
types
,
bool
enforcePeriodicBox
=
false
);
State
getState
(
int
copy
,
int
types
,
bool
enforcePeriodicBox
=
false
,
int
groups
=
0xFFFFFFFF
);
/**
/**
* Advance a simulation through time by taking a series of time steps.
* Advance a simulation through time by taking a series of time steps.
*
*
...
...
plugins/rpmd/openmmapi/src/RPMDIntegrator.cpp
View file @
90007de2
...
@@ -81,9 +81,9 @@ void RPMDIntegrator::setVelocities(int copy, const vector<Vec3>& velocities) {
...
@@ -81,9 +81,9 @@ void RPMDIntegrator::setVelocities(int copy, const vector<Vec3>& velocities) {
hasSetVelocity
=
true
;
hasSetVelocity
=
true
;
}
}
State
RPMDIntegrator
::
getState
(
int
copy
,
int
types
,
bool
enforcePeriodicBox
)
{
State
RPMDIntegrator
::
getState
(
int
copy
,
int
types
,
bool
enforcePeriodicBox
,
int
groups
)
{
dynamic_cast
<
IntegrateRPMDStepKernel
&>
(
kernel
.
getImpl
()).
copyToContext
(
copy
,
*
context
);
dynamic_cast
<
IntegrateRPMDStepKernel
&>
(
kernel
.
getImpl
()).
copyToContext
(
copy
,
*
context
);
return
context
->
getOwner
().
getState
(
types
,
enforcePeriodicBox
);
return
context
->
getOwner
().
getState
(
types
,
enforcePeriodicBox
,
groups
);
}
}
void
RPMDIntegrator
::
step
(
int
steps
)
{
void
RPMDIntegrator
::
step
(
int
steps
)
{
...
...
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