Simple patch for openmm_wrapper.cpp
authorJustin Lemkul <jalemkul@vt.edu>
Thu, 7 Jun 2012 00:11:26 +0000 (20:11 -0400)
committerJustin Lemkul <jalemkul@vt.edu>
Fri, 15 Jun 2012 18:21:39 +0000 (14:21 -0400)
The naming of several variables is changed to be consistent with the
latest free energy changes.  Allows mdrun-gpu to be compiled, which
otherwise fails (as reported on gmx-developers).

Change-Id: I497ba07ee6883ef78d23022450f6c3d971b2127e

src/kernel/openmm_wrapper.cpp

index a03760817cdbeedd8fc0f705a86e5b306487095c..cdb26f58207bb041380c9b54cc654fa911c9d344 100644 (file)
@@ -926,10 +926,10 @@ void* openmm_init(FILE *fplog, const char *platformOptStr,
             int atom3 = ubAtoms[offset++];
             /* ubBondForce->addBond(atom1, atom3, */
             bondForce->addBond(atom1, atom3,
-                               idef.iparams[type].u_b.r13, idef.iparams[type].u_b.kUB);
+                               idef.iparams[type].u_b.r13A, idef.iparams[type].u_b.kUBA);
             /* ubAngleForce->addAngle(atom1, atom2, atom3, */ 
             angleForce->addAngle(atom1, atom2, atom3, 
-                    idef.iparams[type].u_b.theta*M_PI/180.0, idef.iparams[type].u_b.ktheta);
+                    idef.iparams[type].u_b.thetaA*M_PI/180.0, idef.iparams[type].u_b.kthetaA);
         }
 
                /* Set proper dihedral terms */