Changeset 20895b for molecuilder/src/atom_bondedparticle.cpp
- Timestamp:
- Nov 4, 2009, 5:34:05 PM (16 years ago)
- Children:
- 5f1d021
- Parents:
- c1b76e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/atom_bondedparticle.cpp
rc1b76e r20895b 126 126 bond *CandidateBond = NULL; 127 127 128 *out << Verbose(3) << "Walker " << *this << ": " << (int)this->type->NoValenceOrbitals << " > " << NoBonds << "?" << endl;128 //*out << Verbose(3) << "Walker " << *this << ": " << (int)this->type->NoValenceOrbitals << " > " << NoBonds << "?" << endl; 129 129 NoBonds = CountBonds(); 130 130 if ((int)(type->NoValenceOrbitals) > NoBonds) { // we have a mismatch, check all bonding partners for mismatch … … 132 132 OtherWalker = (*Runner)->GetOtherAtom(this); 133 133 OtherNoBonds = OtherWalker->CountBonds(); 134 *out << Verbose(3) << "OtherWalker " << *OtherWalker << ": " << (int)OtherWalker->type->NoValenceOrbitals << " > " << NoBonds << "?" << endl;134 //*out << Verbose(3) << "OtherWalker " << *OtherWalker << ": " << (int)OtherWalker->type->NoValenceOrbitals << " > " << NoBonds << "?" << endl; 135 135 if ((int)(OtherWalker->type->NoValenceOrbitals) > NoBonds) { // check if possible candidate 136 136 if ((CandidateBond == NULL) || (ListOfBonds.size() > OtherWalker->ListOfBonds.size())) { // pick the one with fewer number of bonds first 137 137 CandidateBond = (*Runner); 138 *out << Verbose(3) << "New candidate is " << *CandidateBond << "." << endl;138 //*out << Verbose(3) << "New candidate is " << *CandidateBond << "." << endl; 139 139 } 140 140 } … … 144 144 *out << Verbose(2) << "Increased bond degree for bond " << *CandidateBond << "." << endl; 145 145 } else { 146 *out << Verbose(2) << "Could not find correct degree for atom " << *this << "." << endl;146 //*out << Verbose(2) << "Could not find correct degree for atom " << *this << "." << endl; 147 147 FalseBondDegree++; 148 148 }
Note:
See TracChangeset
for help on using the changeset viewer.