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

Comparing branches/development/src/brains/SimInfo.cpp (file contents):
Revision 1543 by gezelter, Mon Jan 17 21:34:36 2011 UTC vs.
Revision 1544 by gezelter, Fri Mar 18 19:31:52 2011 UTC

# Line 824 | Line 824 | namespace OpenMD {
824        }      
825      }
826  
827 <    //fill ident array of local atoms (it is actually ident of
828 <    //AtomType, it is so confusing !!!)
829 <    vector<int> identArray;
827 >    // Build the identArray_
828  
829 <    //to avoid memory reallocation, reserve enough space identArray
830 <    identArray.reserve(getNAtoms());
833 <    
829 >    identArray_.clear();
830 >    identArray_.reserve(getNAtoms());    
831      for(mol = beginMolecule(mi); mol != NULL; mol = nextMolecule(mi)) {        
832        for(atom = mol->beginAtom(ai); atom != NULL; atom = mol->nextAtom(ai)) {
833 <        identArray.push_back(atom->getIdent());
833 >        identArray_.push_back(atom->getIdent());
834        }
835      }    
836  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines