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
8b3c38f9
"platforms/opencl/vscode:/vscode.git/clone" did not exist on "d314e695a83252ff6cbfe07a4b25f446caae33a6"
Commit
8b3c38f9
authored
Sep 20, 2011
by
Mark Friedrichs
Browse files
Added missing getBondedParticles() method
parent
c23d3c05
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
plugins/amoeba/openmmapi/src/AmoebaHarmonicBondForceImpl.cpp
plugins/amoeba/openmmapi/src/AmoebaHarmonicBondForceImpl.cpp
+9
-0
No files found.
plugins/amoeba/openmmapi/src/AmoebaHarmonicBondForceImpl.cpp
View file @
8b3c38f9
...
@@ -61,3 +61,12 @@ std::vector<std::string> AmoebaHarmonicBondForceImpl::getKernelNames() {
...
@@ -61,3 +61,12 @@ std::vector<std::string> AmoebaHarmonicBondForceImpl::getKernelNames() {
return
names
;
return
names
;
}
}
vector
<
pair
<
int
,
int
>
>
AmoebaHarmonicBondForceImpl
::
getBondedParticles
()
const
{
int
numBonds
=
owner
.
getNumBonds
();
vector
<
pair
<
int
,
int
>
>
bonds
(
numBonds
);
for
(
int
i
=
0
;
i
<
numBonds
;
i
++
)
{
double
length
,
k
;
owner
.
getBondParameters
(
i
,
bonds
[
i
].
first
,
bonds
[
i
].
second
,
length
,
k
);
}
return
bonds
;
}
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