704 |
|
|
705 |
|
in_switching_region = switcher_->getSwitch(rgrpsq, sw, dswdr, |
706 |
|
rgrp); |
707 |
+ |
|
708 |
|
atomListRow = fDecomp_->getAtomsInGroupRow(cg1); |
709 |
|
atomListColumn = fDecomp_->getAtomsInGroupColumn(cg2); |
710 |
|
|
719 |
|
jb != atomListColumn.end(); ++jb) { |
720 |
|
atom2 = (*jb); |
721 |
|
|
722 |
< |
if (!fDecomp_->skipAtomPair(atom1, atom2)) { |
722 |
> |
if (!fDecomp_->skipAtomPair(atom1, atom2, cg1, cg2)) { |
723 |
> |
|
724 |
|
vpair = 0.0; |
725 |
|
workPot = 0.0; |
726 |
|
f1 = V3Zero; |
844 |
|
} |
845 |
|
} |
846 |
|
|
847 |
+ |
// collects pairwise information |
848 |
|
fDecomp_->collectData(); |
849 |
|
|
850 |
|
if (info_->requiresSelfCorrection()) { |
851 |
< |
|
849 |
< |
for (int atom1 = 0; atom1 < info_->getNAtoms(); atom1++) { |
851 |
> |
for (int atom1 = 0; atom1 < info_->getNAtoms(); atom1++) { |
852 |
|
fDecomp_->fillSelfData(sdat, atom1); |
853 |
|
interactionMan_->doSelfCorrection(sdat); |
854 |
|
} |
853 |
– |
|
855 |
|
} |
856 |
|
|
857 |
+ |
// collects single-atom information |
858 |
+ |
fDecomp_->collectSelfData(); |
859 |
+ |
|
860 |
|
longRangePotential = *(fDecomp_->getEmbeddingPotential()) + |
861 |
|
*(fDecomp_->getPairwisePotential()); |
862 |
|
|
888 |
|
} |
889 |
|
|
890 |
|
#ifdef IS_MPI |
887 |
– |
|
891 |
|
MPI::COMM_WORLD.Allreduce(MPI::IN_PLACE, stressTensor.getArrayPointer(), 9, |
892 |
|
MPI::REALTYPE, MPI::SUM); |
893 |
|
#endif |