"platforms/opencl/vscode:/vscode.git/clone" did not exist on "d314e695a83252ff6cbfe07a4b25f446caae33a6"
Commit 8b3c38f9 authored by Mark Friedrichs's avatar Mark Friedrichs
Browse files

Added missing getBondedParticles() method

parent c23d3c05
...@@ -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;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment