Changes in src/atom_bondedparticle.cpp [952f38:83f176]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/atom_bondedparticle.cpp
r952f38 r83f176 1 /* 2 * Project: MoleCuilder 3 * Description: creates and alters molecular systems 4 * Copyright (C) 2010 University of Bonn. All rights reserved. 5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. 6 */ 7 1 8 /* 2 9 * atom_bondedparticle.cpp … … 5 12 * Author: heber 6 13 */ 14 15 // include config.h 16 #ifdef HAVE_CONFIG_H 17 #include <config.h> 18 #endif 7 19 8 20 #include "Helpers/MemDebug.hpp" … … 152 164 NoBonds = CountBonds(); 153 165 //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 mismatch166 if ((int)(getType()->getNoValenceOrbitals()) > NoBonds) { // we have a mismatch, check all bonding partners for mismatch 155 167 for (BondList::const_iterator Runner = ListOfBonds.begin(); Runner != ListOfBonds.end(); (++Runner)) { 156 168 OtherWalker = (*Runner)->GetOtherAtom(this); 157 169 OtherNoBonds = OtherWalker->CountBonds(); 158 170 //Log() << Verbose(3) << "OtherWalker " << *OtherWalker << ": " << (int)OtherWalker->type->NoValenceOrbitals << " > " << OtherNoBonds << "?" << endl; 159 if ((int)(OtherWalker-> type->NoValenceOrbitals) > OtherNoBonds) { // check if possible candidate171 if ((int)(OtherWalker->getType()->getNoValenceOrbitals()) > OtherNoBonds) { // check if possible candidate 160 172 if ((CandidateBond == NULL) || (ListOfBonds.size() > OtherWalker->ListOfBonds.size())) { // pick the one with fewer number of bonds first 161 173 CandidateBond = (*Runner); … … 189 201 }; 190 202 203 std::ostream & BondedParticle::operator << (std::ostream &ost) const 204 { 205 ParticleInfo::operator<<(ost); 206 ost << "," << getPosition(); 207 return ost; 208 } 209 210 std::ostream & operator << (std::ostream &ost, const BondedParticle &a) 211 { 212 a.ParticleInfo::operator<<(ost); 213 ost << "," << a.getPosition(); 214 return ost; 215 } 216
Note:
See TracChangeset
for help on using the changeset viewer.