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
6734f66d
Commit
6734f66d
authored
Apr 02, 2014
by
peastman
Browse files
Merge pull request #388 from peastman/master
Exposed getMolecules() in the public API
parents
e76cbe31
0285f162
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
openmmapi/include/openmm/Context.h
openmmapi/include/openmm/Context.h
+9
-0
openmmapi/src/Context.cpp
openmmapi/src/Context.cpp
+4
-0
wrappers/python/src/swig_doxygen/swigInputConfig.py
wrappers/python/src/swig_doxygen/swigInputConfig.py
+1
-0
No files found.
openmmapi/include/openmm/Context.h
View file @
6734f66d
...
...
@@ -247,6 +247,15 @@ public:
* @param stream an input stream the checkpoint data should be read from
*/
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:
friend
class
Force
;
friend
class
Platform
;
...
...
openmmapi/src/Context.cpp
View file @
6734f66d
...
...
@@ -278,3 +278,7 @@ void Context::loadCheckpoint(istream& stream) {
ContextImpl
&
Context
::
getImpl
()
{
return
*
impl
;
}
const
vector
<
vector
<
int
>
>&
Context
::
getMolecules
()
const
{
return
impl
->
getMolecules
();
}
wrappers/python/src/swig_doxygen/swigInputConfig.py
View file @
6734f66d
...
...
@@ -297,6 +297,7 @@ UNITS = {
(
"AmoebaWcaDispersionForce"
,
"getShctd"
)
:
(
None
,
()),
(
"Context"
,
"getParameter"
)
:
(
None
,
()),
(
"Context"
,
"getMolecules"
)
:
(
None
,
()),
(
"CMAPTorsionForce"
,
"getMapParameters"
)
:
(
None
,
()),
(
"CMAPTorsionForce"
,
"getTorsionParameters"
)
:
(
None
,
()),
(
"CMMotionRemover"
,
"getFrequency"
)
:
(
None
,
()),
...
...
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