| 475 |
|
// Zero out the stress tensor |
| 476 |
|
stressTensor *= 0.0; |
| 477 |
|
// Zero out the heatFlux |
| 478 |
< |
fDecomp_->setHeatFlux( V3Zero ); |
| 478 |
> |
fDecomp_->setHeatFlux( Vector3d(0.0) ); |
| 479 |
|
} |
| 480 |
|
|
| 481 |
|
void ForceManager::shortRangeInteractions() { |
| 644 |
|
RealType mf; |
| 645 |
|
RealType lrPot; |
| 646 |
|
RealType vpair; |
| 647 |
+ |
RealType dVdFQ1(0.0); |
| 648 |
+ |
RealType dVdFQ2(0.0); |
| 649 |
|
potVec longRangePotential(0.0); |
| 650 |
|
potVec workPot(0.0); |
| 651 |
|
vector<int>::iterator ia, jb; |
| 657 |
|
idat.pot = &workPot; |
| 658 |
|
sdat.pot = fDecomp_->getEmbeddingPotential(); |
| 659 |
|
idat.vpair = &vpair; |
| 660 |
+ |
idat.dVdFQ1 = &dVdFQ1; |
| 661 |
+ |
idat.dVdFQ2 = &dVdFQ2; |
| 662 |
|
idat.f1 = &f1; |
| 663 |
|
idat.sw = &sw; |
| 664 |
|
idat.shiftedPot = (cutoffMethod_ == SHIFTED_POTENTIAL) ? true : false; |
| 672 |
|
} else { |
| 673 |
|
loopStart = PAIR_LOOP; |
| 674 |
|
} |
| 671 |
– |
|
| 675 |
|
for (int iLoop = loopStart; iLoop <= loopEnd; iLoop++) { |
| 676 |
|
|
| 677 |
|
if (iLoop == loopStart) { |
| 703 |
|
|
| 704 |
|
in_switching_region = switcher_->getSwitch(rgrpsq, sw, dswdr, |
| 705 |
|
rgrp); |
| 703 |
– |
|
| 706 |
|
atomListRow = fDecomp_->getAtomsInGroupRow(cg1); |
| 707 |
|
atomListColumn = fDecomp_->getAtomsInGroupColumn(cg2); |
| 708 |
|
|
| 709 |
|
if (doHeatFlux_) |
| 710 |
|
gvel2 = fDecomp_->getGroupVelocityColumn(cg2); |
| 711 |
< |
|
| 711 |
> |
|
| 712 |
|
for (ia = atomListRow.begin(); |
| 713 |
|
ia != atomListRow.end(); ++ia) { |
| 714 |
|
atom1 = (*ia); |
| 715 |
< |
|
| 715 |
> |
|
| 716 |
|
for (jb = atomListColumn.begin(); |
| 717 |
|
jb != atomListColumn.end(); ++jb) { |
| 718 |
|
atom2 = (*jb); |
| 721 |
|
vpair = 0.0; |
| 722 |
|
workPot = 0.0; |
| 723 |
|
f1 = V3Zero; |
| 724 |
+ |
dVdFQ1 = 0.0; |
| 725 |
+ |
dVdFQ2 = 0.0; |
| 726 |
|
|
| 727 |
|
fDecomp_->fillInteractionData(idat, atom1, atom2); |
| 728 |
< |
|
| 728 |
> |
|
| 729 |
|
topoDist = fDecomp_->getTopologicalDistance(atom1, atom2); |
| 730 |
|
vdwMult = vdwScale_[topoDist]; |
| 731 |
|
electroMult = electrostaticScale_[topoDist]; |