ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/brains/ForceManager.cpp
(Generate patch)

Comparing trunk/src/brains/ForceManager.cpp (file contents):
Revision 1782 by gezelter, Wed Aug 22 02:28:28 2012 UTC vs.
Revision 1809 by gezelter, Mon Nov 5 19:41:28 2012 UTC

# Line 684 | Line 684 | namespace OpenMD {
684      RealType vpair;
685      RealType dVdFQ1(0.0);
686      RealType dVdFQ2(0.0);
687 +    Vector3d eField1(0.0);
688 +    Vector3d eField2(0.0);
689      potVec longRangePotential(0.0);
690      potVec workPot(0.0);
691      potVec exPot(0.0);
# Line 700 | Line 702 | namespace OpenMD {
702      idat.vpair = &vpair;
703      idat.dVdFQ1 = &dVdFQ1;
704      idat.dVdFQ2 = &dVdFQ2;
705 +    idat.eField1 = &eField1;
706 +    idat.eField2 = &eField2;
707      idat.f1 = &f1;
708      idat.sw = &sw;
709      idat.shiftedPot = (cutoffMethod_ == SHIFTED_POTENTIAL) ? true : false;
# Line 814 | Line 818 | namespace OpenMD {
818                fij += fg;
819  
820                if (atomListRow.size() == 1 && atomListColumn.size() == 1) {
821 <                stressTensor -= outProduct( *(idat.d), fg);
822 <                if (doHeatFlux_)
823 <                  fDecomp_->addToHeatFlux(*(idat.d) * dot(fg, vel2));
824 <                
821 >                if (!fDecomp_->skipAtomPair(atomListRow[0],
822 >                                            atomListColumn[0],
823 >                                            cg1, cg2)) {
824 >                  stressTensor -= outProduct( *(idat.d), fg);
825 >                  if (doHeatFlux_)
826 >                    fDecomp_->addToHeatFlux(*(idat.d) * dot(fg, vel2));
827 >                }                
828                }
829            
830                for (ia = atomListRow.begin();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines