Changeset 71910a for molecuilder/src/molecule_fragmentation.cpp
- Timestamp:
- Apr 7, 2010, 3:45:38 PM (16 years ago)
- Children:
- 0f55b2
- Parents:
- 770138
- File:
-
- 1 edited
-
molecuilder/src/molecule_fragmentation.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecule_fragmentation.cpp
r770138 r71910a 1669 1669 // remove bonds that are beyond bonddistance 1670 1670 for(int i=NDIM;i--;) 1671 Translationvector .x[i] = 0.;1671 Translationvector[i] = 0.; 1672 1672 // scan all bonds 1673 1673 Binder = first; … … 1676 1676 Binder = Binder->next; 1677 1677 for (int i=NDIM;i--;) { 1678 tmp = fabs(Binder->leftatom->x .x[i] - Binder->rightatom->x.x[i]);1678 tmp = fabs(Binder->leftatom->x[i] - Binder->rightatom->x[i]); 1679 1679 //Log() << Verbose(3) << "Checking " << i << "th distance of " << *Binder->leftatom << " to " << *Binder->rightatom << ": " << tmp << "." << endl; 1680 1680 if (tmp > BondDistance) { … … 1690 1690 // create translation vector from their periodically modified distance 1691 1691 for (int i=NDIM;i--;) { 1692 tmp = Binder->leftatom->x .x[i] - Binder->rightatom->x.x[i];1692 tmp = Binder->leftatom->x[i] - Binder->rightatom->x[i]; 1693 1693 if (fabs(tmp) > BondDistance) 1694 Translationvector .x[i] = (tmp < 0) ? +1. : -1.;1694 Translationvector[i] = (tmp < 0) ? +1. : -1.; 1695 1695 } 1696 1696 Translationvector.MatrixMultiplication(matrix); 1697 1697 //Log() << Verbose(3) << "Translation vector is "; 1698 Translationvector.Output(); 1699 Log() << Verbose(0) << endl; 1698 Log() << Verbose(0) << Translationvector << endl; 1700 1699 // apply to all atoms of first component via BFS 1701 1700 for (int i=AtomCount;i--;)
Note:
See TracChangeset
for help on using the changeset viewer.
