Changes in src/atom_bondedparticle.cpp [952f38:bf3817]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/atom_bondedparticle.cpp
r952f38 rbf3817 5 5 * Author: heber 6 6 */ 7 8 // include config.h 9 #ifdef HAVE_CONFIG_H 10 #include <config.h> 11 #endif 7 12 8 13 #include "Helpers/MemDebug.hpp" … … 152 157 NoBonds = CountBonds(); 153 158 //Log() << Verbose(3) << "Walker " << *this << ": " << (int)this->type->NoValenceOrbitals << " > " << NoBonds << "?" << endl; 154 if ((int)( type->NoValenceOrbitals) > NoBonds) { // we have a mismatch, check all bonding partners for mismatch159 if ((int)(getType()->NoValenceOrbitals) > NoBonds) { // we have a mismatch, check all bonding partners for mismatch 155 160 for (BondList::const_iterator Runner = ListOfBonds.begin(); Runner != ListOfBonds.end(); (++Runner)) { 156 161 OtherWalker = (*Runner)->GetOtherAtom(this); 157 162 OtherNoBonds = OtherWalker->CountBonds(); 158 163 //Log() << Verbose(3) << "OtherWalker " << *OtherWalker << ": " << (int)OtherWalker->type->NoValenceOrbitals << " > " << OtherNoBonds << "?" << endl; 159 if ((int)(OtherWalker-> type->NoValenceOrbitals) > OtherNoBonds) { // check if possible candidate164 if ((int)(OtherWalker->getType()->NoValenceOrbitals) > OtherNoBonds) { // check if possible candidate 160 165 if ((CandidateBond == NULL) || (ListOfBonds.size() > OtherWalker->ListOfBonds.size())) { // pick the one with fewer number of bonds first 161 166 CandidateBond = (*Runner); … … 189 194 }; 190 195 196 std::ostream & BondedParticle::operator << (std::ostream &ost) const 197 { 198 ParticleInfo::operator<<(ost); 199 ost << "," << getPosition(); 200 return ost; 201 } 202 203 std::ostream & operator << (std::ostream &ost, const BondedParticle &a) 204 { 205 a.ParticleInfo::operator<<(ost); 206 ost << "," << a.getPosition(); 207 return ost; 208 } 209
Note:
See TracChangeset
for help on using the changeset viewer.