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 |
|
|