| 675 |
|
InteractionData idat; |
| 676 |
|
SelfData sdat; |
| 677 |
|
RealType mf; |
| 678 |
– |
RealType lrPot; |
| 678 |
|
RealType vpair; |
| 679 |
|
RealType dVdFQ1(0.0); |
| 680 |
|
RealType dVdFQ2(0.0); |
| 868 |
|
|
| 869 |
|
fDecomp_->collectIntermediateData(); |
| 870 |
|
|
| 871 |
< |
for (int atom1 = 0; atom1 < info_->getNAtoms(); atom1++) { |
| 871 |
> |
for (unsigned int atom1 = 0; atom1 < info_->getNAtoms(); atom1++) { |
| 872 |
|
fDecomp_->fillSelfData(sdat, atom1); |
| 873 |
|
interactionMan_->doPreForce(sdat); |
| 874 |
|
} |
| 883 |
|
fDecomp_->collectData(); |
| 884 |
|
|
| 885 |
|
if (info_->requiresSelfCorrection()) { |
| 886 |
< |
for (int atom1 = 0; atom1 < info_->getNAtoms(); atom1++) { |
| 886 |
> |
for (unsigned int atom1 = 0; atom1 < info_->getNAtoms(); atom1++) { |
| 887 |
|
fDecomp_->fillSelfData(sdat, atom1); |
| 888 |
|
interactionMan_->doSelfCorrection(sdat); |
| 889 |
|
} |
| 896 |
|
*(fDecomp_->getPairwisePotential()); |
| 897 |
|
|
| 898 |
|
curSnapshot->setLongRangePotential(longRangePotential); |
| 900 |
– |
|
| 901 |
– |
// lrPot = longRangePotential.sum(); |
| 902 |
– |
|
| 903 |
– |
// //store the long range potential |
| 904 |
– |
// curSnapshot->setLongRangePotential(lrPot); |
| 899 |
|
|
| 900 |
|
curSnapshot->setExcludedPotentials(*(fDecomp_->getExcludedSelfPotential()) + |
| 901 |
|
*(fDecomp_->getExcludedPotential())); |