Commit c34bd3b2 authored by Peter Eastman's avatar Peter Eastman
Browse files

Bug fix

parent 8cda1b79
...@@ -62,7 +62,7 @@ void* AmoebaBondForceProxy::deserialize(const SerializationNode& node) const { ...@@ -62,7 +62,7 @@ void* AmoebaBondForceProxy::deserialize(const SerializationNode& node) const {
throw OpenMMException("Unsupported version number"); throw OpenMMException("Unsupported version number");
AmoebaBondForce* force = new AmoebaBondForce(); AmoebaBondForce* force = new AmoebaBondForce();
try { try {
force->setAmoebaGlobalBondCubic(node.getDoubleProperty("condCubic")); force->setAmoebaGlobalBondCubic(node.getDoubleProperty("cubic"));
force->setAmoebaGlobalBondQuartic(node.getDoubleProperty("quartic")); force->setAmoebaGlobalBondQuartic(node.getDoubleProperty("quartic"));
const SerializationNode& bonds = node.getChildNode("Bonds"); const SerializationNode& bonds = node.getChildNode("Bonds");
for ( unsigned int ii = 0; ii < (int) bonds.getChildren().size(); ii++) { for ( unsigned int ii = 0; ii < (int) bonds.getChildren().size(); ii++) {
......
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