Changeset 4959f1
- Timestamp:
- Oct 10, 2008, 1:39:54 PM (17 years ago)
- Children:
- 2bfaf8
- Parents:
- 1bd619
- git-author:
- Frederik Heber <heber@…> (10/10/08 13:32:33)
- git-committer:
- Frederik Heber <heber@…> (10/10/08 13:39:54)
- File:
-
- 1 edited
-
molecuilder/src/molecules.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecules.cpp
r1bd619 r4959f1 2307 2307 if ((int)(Walker->type->NoValenceOrbitals) > NoBonds) { // we have a mismatch, check all bonding partners for mismatch 2308 2308 Candidate = NULL; 2309 CandidateBondNo = -1; 2309 2310 for(int i=0;i<NumberOfBondsPerAtom[Walker->nr];i++) { // go through each of its bond partners 2310 2311 OtherWalker = ListOfBondsPerAtom[Walker->nr][i]->GetOtherAtom(Walker); … … 2322 2323 } 2323 2324 } 2324 if ( Candidate != NULL) {2325 if ((Candidate != NULL) && (CandidateBondNo != -1)) { 2325 2326 ListOfBondsPerAtom[Walker->nr][CandidateBondNo]->BondDegree++; 2326 2327 *out << Verbose(2) << "Increased bond degree for bond " << *ListOfBondsPerAtom[Walker->nr][CandidateBondNo] << "." << endl; 2327 2328 } else 2328 *out << Verbose(2) << "Could not find correct degree for bond " << *ListOfBondsPerAtom[Walker->nr][CandidateBondNo]<< "." << endl;2329 *out << Verbose(2) << "Could not find correct degree for atom " << *Walker << "." << endl; 2329 2330 FalseBondDegree++; 2330 2331 }
Note:
See TracChangeset
for help on using the changeset viewer.
