Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/molecule_fragmentation.cpp

    rd74077 r952f38  
    1515#include "config.hpp"
    1616#include "element.hpp"
    17 #include "helpers.hpp"
     17#include "Helpers/helpers.hpp"
    1818#include "lists.hpp"
    19 #include "verbose.hpp"
    20 #include "log.hpp"
     19#include "Helpers/Verbose.hpp"
     20#include "Helpers/Log.hpp"
    2121#include "molecule.hpp"
    2222#include "periodentafel.hpp"
    2323#include "World.hpp"
    24 #include "Matrix.hpp"
     24#include "LinearAlgebra/Matrix.hpp"
    2525#include "Box.hpp"
    2626#include "stackclass.hpp"
     
    451451      for (molecule::const_iterator iter = begin(); iter != end(); ++iter) {
    452452    #ifdef ADDHYDROGEN
    453         if ((*iter)->getType()->Z != 1) // skip hydrogen
     453        if ((*iter)->type->Z != 1) // skip hydrogen
    454454    #endif
    455455        {
     
    471471    for(molecule::const_iterator iter = begin(); iter != end(); ++iter) {
    472472  #ifdef ADDHYDROGEN
    473       if ((*iter)->getType()->Z != 1) // skip hydrogen
     473      if ((*iter)->type->Z != 1) // skip hydrogen
    474474  #endif
    475475      {
     
    880880  for (KeySet::iterator runner = Leaf->begin(); runner != Leaf->end(); runner++) {
    881881    Runner = FindAtom((*runner));
    882     if (Runner->getType()->Z != 1) { // skip all those added hydrogens when re-filling snake stack
     882    if (Runner->type->Z != 1) { // skip all those added hydrogens when re-filling snake stack
    883883      if (ShortestPathList[(*runner)] > SP) {  // remove the oldest one with longest shortest path
    884884        SP = ShortestPathList[(*runner)];
     
    969969    ++iter;
    970970#ifdef ADDHYDROGEN
    971     while ((iter != Leaf->end()) && ((*iter)->getType()->Z == 1)){ // skip added hydrogen
     971    while ((iter != Leaf->end()) && ((*iter)->type->Z == 1)){ // skip added hydrogen
    972972      iter++;
    973973    }
     
    13471347        if ((RestrictedKeySet.find(OtherWalker->nr) != RestrictedKeySet.end())
    13481348  #ifdef ADDHYDROGEN
    1349          && (OtherWalker->getType()->Z != 1)
     1349         && (OtherWalker->type->Z != 1)
    13501350  #endif
    13511351                                                              ) {  // skip hydrogens and restrict to fragment
     
    17411741        Binder = (*BondRunner);
    17421742        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]);
    17441744          //Log() << Verbose(3) << "Checking " << i << "th distance of " << *Binder->leftatom << " to " << *Binder->rightatom << ": " << tmp << "." << endl;
    17451745          if (tmp > BondDistance) {
     
    17551755      // create translation vector from their periodically modified distance
    17561756      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];
    17581758        if (fabs(tmp) > BondDistance)
    17591759          Translationvector[i] = (tmp < 0) ? +1. : -1.;
     
    17701770        //Log() << Verbose (3) << "Current Walker is: " << *Walker << "." << endl;
    17711771        ColorList[Walker->nr] = black;    // mark as explored
    1772         *Walker += Translationvector; // translate
     1772        Walker->x += Translationvector; // translate
    17731773        for (BondList::const_iterator Runner = Walker->ListOfBonds.begin(); Runner != Walker->ListOfBonds.end(); (++Runner)) {
    17741774          if ((*Runner) != Binder) {
Note: See TracChangeset for help on using the changeset viewer.