Changeset 1f9f1b for molecuilder/src/molecules.cpp
- Timestamp:
- Jun 16, 2008, 2:09:27 PM (17 years ago)
- Children:
- b73d28
- Parents:
- 0779a9
- File:
-
- 1 edited
-
molecuilder/src/molecules.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecules.cpp
r0779a9 r1f9f1b 1573 1573 for(j=0;j<NumberOfBondsPerAtom[Walker->nr];j++) 1574 1574 NoBonds += ListOfBondsPerAtom[Walker->nr][j]->BondDegree; 1575 //*out << Verbose(3) << "Walker: " << (int)Walker->type->NoValenceOrbitals << " > " << NoBonds << "?" << endl;1575 *out << Verbose(3) << "Walker: " << (int)Walker->type->NoValenceOrbitals << " > " << NoBonds << "?" << endl; 1576 1576 if ((int)(Walker->type->NoValenceOrbitals) > NoBonds) { // we have a mismatch, check NoBonds of other atom 1577 1577 // count valence of second partner … … 1579 1579 for(j=0;j<NumberOfBondsPerAtom[OtherWalker->nr];j++) 1580 1580 NoBonds += ListOfBondsPerAtom[OtherWalker->nr][j]->BondDegree; 1581 //*out << Verbose(3) << "OtherWalker: " << (int)OtherWalker->type->NoValenceOrbitals << " > " << NoBonds << "?" << endl;1581 *out << Verbose(3) << "OtherWalker: " << (int)OtherWalker->type->NoValenceOrbitals << " > " << NoBonds << "?" << endl; 1582 1582 if ((int)(OtherWalker->type->NoValenceOrbitals) > NoBonds) // increase bond degree by one 1583 1583 ListOfBondsPerAtom[Walker->nr][i]->BondDegree++; … … 1591 1591 *out << Verbose(1) << "I detected " << BondCount << " bonds in the molecule with distance " << bonddistance << "." << endl; 1592 1592 1593 //// output bonds for debugging (if bond chain list was correctly installed)1594 //*out << Verbose(1) << endl << "From contents of bond chain list:";1595 //bond *Binder = first;1596 //while(Binder->next != last) {1597 //Binder = Binder->next;1598 //*out << *Binder << "\t" << endl;1599 //}1600 //*out << endl;1593 // output bonds for debugging (if bond chain list was correctly installed) 1594 *out << Verbose(1) << endl << "From contents of bond chain list:"; 1595 bond *Binder = first; 1596 while(Binder->next != last) { 1597 Binder = Binder->next; 1598 *out << *Binder << "\t" << endl; 1599 } 1600 *out << endl; 1601 1601 } else 1602 1602 *out << Verbose(1) << "AtomCount is " << AtomCount << ", thus no bonds, no connections!." << endl; … … 3131 3131 // *out << ", who has no son in this fragment molecule." << endl; 3132 3132 #ifdef ADDHYDROGEN 3133 //*out << Verbose(3) << "Adding Hydrogen to " << Runner->Name << " and a bond in between." << endl;3133 //*out << Verbose(3) << "Adding Hydrogen to " << Runner->Name << " and a bond in between." << endl; 3134 3134 Leaf->AddHydrogenReplacementAtom(out, ListOfBondsPerAtom[FatherOfRunner->nr][i], Runner, FatherOfRunner, OtherFather, ListOfBondsPerAtom[FatherOfRunner->nr],NumberOfBondsPerAtom[FatherOfRunner->nr], IsAngstroem); 3135 3135 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
