| 93 |
|
atom->setFlucQVel(0.0); |
| 94 |
|
} |
| 95 |
|
} |
| 96 |
– |
|
| 97 |
– |
std::cerr << "doing a minimization\n"; |
| 96 |
|
|
| 97 |
|
fqConstraints_ = new FluctuatingChargeConstraints(info_); |
| 98 |
|
FluctuatingChargeObjectiveFunction flucQobjf(info_, forceMan_, fqConstraints_); |
| 104 |
|
DumpStatusFunction dsf(info_); // we want a dump file written every iteration |
| 105 |
|
|
| 106 |
|
minim->minimize(problem, endCriteria); |
| 107 |
< |
cerr << "Finished minimization\n"; |
| 110 |
< |
for (mol = info_->beginMolecule(i); mol != NULL; |
| 111 |
< |
mol = info_->nextMolecule(i)) { |
| 112 |
< |
for (atom = mol->beginFluctuatingCharge(j); atom != NULL; |
| 113 |
< |
atom = mol->nextFluctuatingCharge(j)) { |
| 114 |
< |
cerr << atom->getType() << "\tQ Pos: " << atom->getFlucQPos() << "\n"; |
| 115 |
< |
} |
| 116 |
< |
} |
| 107 |
> |
|
| 108 |
|
} |
| 109 |
|
|
| 119 |
– |
|
| 110 |
|
void FluctuatingChargePropagator::applyConstraints() { |
| 111 |
|
if (!hasFlucQ_) return; |
| 112 |
|
|