| 390 |
|
info_->prepareTopology(); |
| 391 |
|
|
| 392 |
|
doParticlePot_ = info_->getSimParams()->getOutputParticlePotential(); |
| 393 |
– |
cerr << "dPP = " << doParticlePot_ << "\n"; |
| 393 |
|
|
| 394 |
|
} |
| 395 |
|
|
| 505 |
|
|
| 506 |
|
for (bond = mol->beginBond(bondIter); bond != NULL; |
| 507 |
|
bond = mol->nextBond(bondIter)) { |
| 508 |
< |
bond->calcForce(); |
| 508 |
> |
bond->calcForce(doParticlePot_); |
| 509 |
|
bondPotential += bond->getPotential(); |
| 510 |
|
} |
| 511 |
|
|
| 513 |
|
bend = mol->nextBend(bendIter)) { |
| 514 |
|
|
| 515 |
|
RealType angle; |
| 516 |
< |
bend->calcForce(angle); |
| 516 |
> |
bend->calcForce(angle, doParticlePot_); |
| 517 |
|
RealType currBendPot = bend->getPotential(); |
| 518 |
|
|
| 519 |
|
bendPotential += bend->getPotential(); |
| 538 |
|
for (torsion = mol->beginTorsion(torsionIter); torsion != NULL; |
| 539 |
|
torsion = mol->nextTorsion(torsionIter)) { |
| 540 |
|
RealType angle; |
| 541 |
< |
torsion->calcForce(angle); |
| 541 |
> |
torsion->calcForce(angle, doParticlePot_); |
| 542 |
|
RealType currTorsionPot = torsion->getPotential(); |
| 543 |
|
torsionPotential += torsion->getPotential(); |
| 544 |
|
map<Torsion*, TorsionDataSet>::iterator i = torsionDataSets.find(torsion); |
| 562 |
|
inversion != NULL; |
| 563 |
|
inversion = mol->nextInversion(inversionIter)) { |
| 564 |
|
RealType angle; |
| 565 |
< |
inversion->calcForce(angle); |
| 565 |
> |
inversion->calcForce(angle, doParticlePot_); |
| 566 |
|
RealType currInversionPot = inversion->getPotential(); |
| 567 |
|
inversionPotential += inversion->getPotential(); |
| 568 |
|
map<Inversion*, InversionDataSet>::iterator i = inversionDataSets.find(inversion); |