106 |
|
} |
107 |
|
|
108 |
|
void GB::initialize() { |
109 |
+ |
|
110 |
+ |
ForceFieldOptions& fopts = forceField_->getForceFieldOptions(); |
111 |
+ |
mu_ = fopts.getGayBerneMu(); |
112 |
+ |
nu_ = fopts.getGayBerneNu(); |
113 |
|
ForceField::AtomTypeContainer* atomTypes = forceField_->getAtomTypes(); |
114 |
|
ForceField::AtomTypeContainer::MapTypeIterator i; |
115 |
|
AtomType* at; |
286 |
|
RealType xpap2 = mixer.xpap2; |
287 |
|
RealType xpapi2 = mixer.xpapi2; |
288 |
|
|
289 |
< |
Vector3d ul1 = A1.getColumn(2); |
290 |
< |
Vector3d ul2 = A2.getColumn(2); |
289 |
> |
Vector3d ul1 = A1.getRow(2); |
290 |
> |
Vector3d ul2 = A2.getRow(2); |
291 |
|
|
292 |
|
RealType a, b, g; |
293 |
|
|
395 |
|
// will disappear, as will the transpose below: |
396 |
|
|
397 |
|
calcForce(atype1, atype2, disp, *r, *r2, *sw, *vdwMult, *vpair, *pot, |
398 |
< |
Ai.transpose(), Aj.transpose(), frc, trq1, trq1); |
398 |
> |
Ai, Aj, frc, trq1, trq1); |
399 |
|
|
400 |
|
f1[0] = frc.x(); |
401 |
|
f1[1] = frc.y(); |