Changes in src/molecule_fragmentation.cpp [d74077:952f38]
- File:
-
- 1 edited
-
src/molecule_fragmentation.cpp (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/molecule_fragmentation.cpp
rd74077 r952f38 15 15 #include "config.hpp" 16 16 #include "element.hpp" 17 #include " helpers.hpp"17 #include "Helpers/helpers.hpp" 18 18 #include "lists.hpp" 19 #include " verbose.hpp"20 #include " log.hpp"19 #include "Helpers/Verbose.hpp" 20 #include "Helpers/Log.hpp" 21 21 #include "molecule.hpp" 22 22 #include "periodentafel.hpp" 23 23 #include "World.hpp" 24 #include " Matrix.hpp"24 #include "LinearAlgebra/Matrix.hpp" 25 25 #include "Box.hpp" 26 26 #include "stackclass.hpp" … … 451 451 for (molecule::const_iterator iter = begin(); iter != end(); ++iter) { 452 452 #ifdef ADDHYDROGEN 453 if ((*iter)-> getType()->Z != 1) // skip hydrogen453 if ((*iter)->type->Z != 1) // skip hydrogen 454 454 #endif 455 455 { … … 471 471 for(molecule::const_iterator iter = begin(); iter != end(); ++iter) { 472 472 #ifdef ADDHYDROGEN 473 if ((*iter)-> getType()->Z != 1) // skip hydrogen473 if ((*iter)->type->Z != 1) // skip hydrogen 474 474 #endif 475 475 { … … 880 880 for (KeySet::iterator runner = Leaf->begin(); runner != Leaf->end(); runner++) { 881 881 Runner = FindAtom((*runner)); 882 if (Runner-> getType()->Z != 1) { // skip all those added hydrogens when re-filling snake stack882 if (Runner->type->Z != 1) { // skip all those added hydrogens when re-filling snake stack 883 883 if (ShortestPathList[(*runner)] > SP) { // remove the oldest one with longest shortest path 884 884 SP = ShortestPathList[(*runner)]; … … 969 969 ++iter; 970 970 #ifdef ADDHYDROGEN 971 while ((iter != Leaf->end()) && ((*iter)-> getType()->Z == 1)){ // skip added hydrogen971 while ((iter != Leaf->end()) && ((*iter)->type->Z == 1)){ // skip added hydrogen 972 972 iter++; 973 973 } … … 1347 1347 if ((RestrictedKeySet.find(OtherWalker->nr) != RestrictedKeySet.end()) 1348 1348 #ifdef ADDHYDROGEN 1349 && (OtherWalker-> getType()->Z != 1)1349 && (OtherWalker->type->Z != 1) 1350 1350 #endif 1351 1351 ) { // skip hydrogens and restrict to fragment … … 1741 1741 Binder = (*BondRunner); 1742 1742 for (int i=NDIM;i--;) { 1743 tmp = fabs(Binder->leftatom-> at(i) - Binder->rightatom->at(i));1743 tmp = fabs(Binder->leftatom->x[i] - Binder->rightatom->x[i]); 1744 1744 //Log() << Verbose(3) << "Checking " << i << "th distance of " << *Binder->leftatom << " to " << *Binder->rightatom << ": " << tmp << "." << endl; 1745 1745 if (tmp > BondDistance) { … … 1755 1755 // create translation vector from their periodically modified distance 1756 1756 for (int i=NDIM;i--;) { 1757 tmp = Binder->leftatom-> at(i) - Binder->rightatom->at(i);1757 tmp = Binder->leftatom->x[i] - Binder->rightatom->x[i]; 1758 1758 if (fabs(tmp) > BondDistance) 1759 1759 Translationvector[i] = (tmp < 0) ? +1. : -1.; … … 1770 1770 //Log() << Verbose (3) << "Current Walker is: " << *Walker << "." << endl; 1771 1771 ColorList[Walker->nr] = black; // mark as explored 1772 *Walker+= Translationvector; // translate1772 Walker->x += Translationvector; // translate 1773 1773 for (BondList::const_iterator Runner = Walker->ListOfBonds.begin(); Runner != Walker->ListOfBonds.end(); (++Runner)) { 1774 1774 if ((*Runner) != Binder) {
Note:
See TracChangeset
for help on using the changeset viewer.
