ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/nonbonded/LJ.cpp
(Generate patch)

Comparing branches/development/src/nonbonded/LJ.cpp (file contents):
Revision 1583 by gezelter, Thu Jun 16 22:00:08 2011 UTC vs.
Revision 1629 by gezelter, Wed Sep 14 21:15:17 2011 UTC

# Line 242 | Line 242 | namespace OpenMD {
242    void LJ::calcForce(InteractionData &idat) {
243      
244      if (!initialized_) initialize();
245 <    
245 >
246      map<pair<AtomType*, AtomType*>, LJInteractionData>::iterator it;
247      it = MixingMap.find( idat.atypes );
248      
# Line 284 | Line 284 | namespace OpenMD {
284                                                                  myDerivC)*sigmai;      
285  
286        (*(idat.pot))[VANDERWAALS_FAMILY] += *(idat.sw) * pot_temp;
287 <      *(idat.f1) = *(idat.d) * dudr / *(idat.rij);
287 >      *(idat.f1) += *(idat.d) * dudr / *(idat.rij);
288      }
289      return;
290    }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines