582 |
|
bool update_nlist = fDecomp_->checkNeighborList(); |
583 |
|
if (update_nlist) |
584 |
|
neighborList = fDecomp_->buildNeighborList(); |
585 |
< |
} |
586 |
< |
|
585 |
> |
} |
586 |
> |
|
587 |
|
for (vector<pair<int, int> >::iterator it = neighborList.begin(); |
588 |
|
it != neighborList.end(); ++it) { |
589 |
|
|
618 |
|
for (vector<int>::iterator jb = atomListColumn.begin(); |
619 |
|
jb != atomListColumn.end(); ++jb) { |
620 |
|
atom2 = (*jb); |
621 |
< |
|
621 |
> |
|
622 |
|
if (!fDecomp_->skipAtomPair(atom1, atom2)) { |
623 |
|
vpair = 0.0; |
624 |
|
workPot = 0.0; |
640 |
|
idat.d = &d; |
641 |
|
idat.r2 = &r2; |
642 |
|
} |
643 |
< |
|
643 |
> |
|
644 |
|
r = sqrt( *(idat.r2) ); |
645 |
|
idat.rij = &r; |
646 |
|
|
649 |
|
} else { |
650 |
|
interactionMan_->doPair(idat); |
651 |
|
fDecomp_->unpackInteractionData(idat, atom1, atom2); |
652 |
+ |
|
653 |
|
vij += vpair; |
654 |
|
fij += f1; |
655 |
|
tau -= outProduct( *(idat.d), f1); |