Changeset d01f4d
- Timestamp:
- Oct 10, 2008, 1:32:33 PM (17 years ago)
- Children:
- 14178b
- Parents:
- b86de7
- File:
-
- 1 edited
-
molecuilder/src/molecules.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecules.cpp
rb86de7 rd01f4d 2470 2470 if ((int)(Walker->type->NoValenceOrbitals) > NoBonds) { // we have a mismatch, check all bonding partners for mismatch 2471 2471 Candidate = NULL; 2472 CandidateBondNo = -1; 2472 2473 for(int i=0;i<NumberOfBondsPerAtom[Walker->nr];i++) { // go through each of its bond partners 2473 2474 OtherWalker = ListOfBondsPerAtom[Walker->nr][i]->GetOtherAtom(Walker); … … 2485 2486 } 2486 2487 } 2487 if ( Candidate != NULL) {2488 if ((Candidate != NULL) && (CandidateBondNo != -1)) { 2488 2489 ListOfBondsPerAtom[Walker->nr][CandidateBondNo]->BondDegree++; 2489 2490 *out << Verbose(2) << "Increased bond degree for bond " << *ListOfBondsPerAtom[Walker->nr][CandidateBondNo] << "." << endl; 2490 2491 } else 2491 *out << Verbose(2) << "Could not find correct degree for bond " << *ListOfBondsPerAtom[Walker->nr][CandidateBondNo]<< "." << endl;2492 *out << Verbose(2) << "Could not find correct degree for atom " << *Walker << "." << endl; 2492 2493 FalseBondDegree++; 2493 2494 }
Note:
See TracChangeset
for help on using the changeset viewer.
