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 1473 by gezelter, Tue Jul 20 15:43:00 2010 UTC vs.
Revision 1476 by gezelter, Wed Jul 21 18:31:05 2010 UTC

# Line 166 | Line 166 | namespace OpenMD {
166    }
167  
168    void LJ::initialize() {    
169 <    ForceField::AtomTypeContainer atomTypes = forceField_->getAtomTypes();
169 >    ForceField::AtomTypeContainer* atomTypes = forceField_->getAtomTypes();
170      ForceField::AtomTypeContainer::MapTypeIterator i;
171      AtomType* at;
172  
173 <    for (at = atomTypes.beginType(i); at != NULL;
174 <         at = atomTypes.nextType(i)) {
173 >    for (at = atomTypes->beginType(i); at != NULL;
174 >         at = atomTypes->nextType(i)) {
175        
176        if (at->isLennardJones())
177          addType(at);
178      }
179  
180 <    ForceField::NonBondedInteractionTypeContainer nbiTypes = forceField_->getNonBondedInteractionTypes();
180 >    ForceField::NonBondedInteractionTypeContainer* nbiTypes = forceField_->getNonBondedInteractionTypes();
181      ForceField::NonBondedInteractionTypeContainer::MapTypeIterator j;
182      NonBondedInteractionType* nbt;
183  
184 <    for (nbt = nbiTypes.beginType(j); nbt != NULL;
185 <         nbt = nbiTypes.nextType(j)) {
184 >    for (nbt = nbiTypes->beginType(j); nbt != NULL;
185 >         nbt = nbiTypes->nextType(j)) {
186        
187        if (nbt->isLennardJones()) {
188          
# Line 336 | Line 336 | namespace OpenMD {
336  
337      return;
338  
339
340
339    }
340  
341    void LJ::do_lj_pair(int *atid1, int *atid2, RealType *d, RealType *rij,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines