Changeset 9f73db for molecuilder/src
- Timestamp:
- Oct 13, 2009, 4:42:30 PM (16 years ago)
- Children:
- 57cfb7
- Parents:
- 082da1
- git-author:
- Frederik Heber <heber@…> (10/13/09 16:40:34)
- git-committer:
- Frederik Heber <heber@…> (10/13/09 16:42:30)
- File:
-
- 1 edited
-
molecuilder/src/molecule_fragmentation.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecule_fragmentation.cpp
r082da1 r9f73db 1205 1205 1206 1206 // prepare root level (SP = 0) and a loop bond denoting Root 1207 for (int i= 1;i<Order;i++)1207 for (int i=Order;i--;) 1208 1208 FragmentSearch.BondsPerSPCount[i] = 0; 1209 1209 FragmentSearch.BondsPerSPCount[0] = 1; … … 1347 1347 while (Binder->next != FragmentSearch.BondsPerSPList[2*i+1]) { 1348 1348 Binder = Binder->next; 1349 SP ++;1349 SP++; 1350 1350 } 1351 1351 } … … 1454 1454 int RootNr = 0; 1455 1455 int RootKeyNr = 0; 1456 int StartNr = 0; 1456 1457 int counter = 0; 1457 1458 int NumLevels = 0; … … 1465 1466 counter = FragmentList->size(); 1466 1467 } 1467 while (!RootStack.empty()) { 1468 1469 StartNr = RootStack.back(); 1470 do { 1468 1471 RootKeyNr = RootStack.front(); 1469 1472 RootStack.pop_front(); … … 1477 1480 RootStack.push_back(Walker->nr); 1478 1481 RootNr++; 1479 } 1482 } while (RootKeyNr != StartNr); 1480 1483 return counter; 1481 1484 };
Note:
See TracChangeset
for help on using the changeset viewer.
