Changeset 31ed7d for molecuilder/src/molecules.cpp
- Timestamp:
- Oct 10, 2008, 1:38:41 PM (17 years ago)
- Children:
- 372c4cd
- Parents:
- 5a78f5
- git-author:
- Frederik Heber <heber@…> (10/10/08 13:32:33)
- git-committer:
- Frederik Heber <heber@…> (10/10/08 13:38:41)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecules.cpp
r5a78f5 r31ed7d 1829 1829 if ((int)(Walker->type->NoValenceOrbitals) > NoBonds) { // we have a mismatch, check all bonding partners for mismatch 1830 1830 Candidate = NULL; 1831 CandidateBondNo = -1; 1831 1832 for(int i=0;i<NumberOfBondsPerAtom[Walker->nr];i++) { // go through each of its bond partners 1832 1833 OtherWalker = ListOfBondsPerAtom[Walker->nr][i]->GetOtherAtom(Walker); … … 1844 1845 } 1845 1846 } 1846 if ( Candidate != NULL) {1847 if ((Candidate != NULL) && (CandidateBondNo != -1)) { 1847 1848 ListOfBondsPerAtom[Walker->nr][CandidateBondNo]->BondDegree++; 1848 1849 *out << Verbose(2) << "Increased bond degree for bond " << *ListOfBondsPerAtom[Walker->nr][CandidateBondNo] << "." << endl; 1849 1850 } else 1850 *out << Verbose(2) << "Could not find correct degree for bond " << *ListOfBondsPerAtom[Walker->nr][CandidateBondNo]<< "." << endl;1851 *out << Verbose(2) << "Could not find correct degree for atom " << *Walker << "." << endl; 1851 1852 FalseBondDegree++; 1852 1853 }
Note:
See TracChangeset
for help on using the changeset viewer.