--- branches/new_design/OOPSE-3.0/src/primitives/Molecule.cpp 2004/12/03 21:30:30 1843 +++ branches/new_design/OOPSE-3.0/src/primitives/Molecule.cpp 2004/12/03 22:36:06 1844 @@ -108,7 +108,9 @@ void Molecule::complete() { Atom* atom; AtomIterator ai; for (atom = beginAtom(ai); atom != NULL; atom = nextAtom(ai)) { - if (rigidAtoms.find(*ai) != rigidAtoms.end()) { + + if (rigidAtoms.find(*ai) == rigidAtoms.end()) { + //if an atom does not belong to a rigid body, it is an integrable object integrableObjects_.push_back(*ai); } }