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
abd4ebdc
Commit
abd4ebdc
authored
Apr 03, 2014
by
peastman
Browse files
Exposed getMolecules() in the public API
parent
e76cbe31
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
openmmapi/include/openmm/Context.h
openmmapi/include/openmm/Context.h
+9
-0
openmmapi/src/Context.cpp
openmmapi/src/Context.cpp
+4
-0
No files found.
openmmapi/include/openmm/Context.h
View file @
abd4ebdc
...
@@ -247,6 +247,15 @@ public:
...
@@ -247,6 +247,15 @@ public:
* @param stream an input stream the checkpoint data should be read from
* @param stream an input stream the checkpoint data should be read from
*/
*/
void
loadCheckpoint
(
std
::
istream
&
stream
);
void
loadCheckpoint
(
std
::
istream
&
stream
);
/**
* Get a description of how the particles in the system are grouped into molecules. Two particles are in the
* same molecule if they are connected by constraints or bonds, where every Force object can define bonds
* in whatever way are appropriate to that force.
*
* Each element lists the indices of all particles in a single molecule. Every particle is guaranteed to
* belong to exactly one molecule.
*/
const
std
::
vector
<
std
::
vector
<
int
>
>&
getMolecules
()
const
;
private:
private:
friend
class
Force
;
friend
class
Force
;
friend
class
Platform
;
friend
class
Platform
;
...
...
openmmapi/src/Context.cpp
View file @
abd4ebdc
...
@@ -278,3 +278,7 @@ void Context::loadCheckpoint(istream& stream) {
...
@@ -278,3 +278,7 @@ void Context::loadCheckpoint(istream& stream) {
ContextImpl
&
Context
::
getImpl
()
{
ContextImpl
&
Context
::
getImpl
()
{
return
*
impl
;
return
*
impl
;
}
}
const
vector
<
vector
<
int
>
>&
Context
::
getMolecules
()
const
{
return
impl
->
getMolecules
();
}
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