Ignore:
Timestamp:
Jun 23, 2008, 11:23:50 AM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
d7b1bf
Parents:
7a40c8
Message:

StoreFragmentFromKeySet(): BUGFIX - commented out the Leaf->AddBond for non-hydrogen atoms by accident

This happened because the adding was hidden in the "*out << ... << endl;" directive. I put it onto an extra line and surrounded it with "*out <<" and so on so that it may still be used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/molecules.cpp

    r7a40c8 r329d0f  
    31233123//          *out << ", whose son is " << *SonList[OtherFather->nr] << "." << endl;
    31243124          if (OtherFather->nr > FatherOfRunner->nr) { // add bond (nr check is for adding only one of both variants: ab, ba)
    3125 //            *out << Verbose(3) << "Adding Bond: " << Leaf->AddBond(Runner, SonList[OtherFather->nr], ListOfBondsPerAtom[FatherOfRunner->nr][i]->BondDegree) << "." << endl;
     3125//            *out << Verbose(3) << "Adding Bond: ";
     3126//            *out <<
     3127            Leaf->AddBond(Runner, SonList[OtherFather->nr], ListOfBondsPerAtom[FatherOfRunner->nr][i]->BondDegree);
     3128//            *out << "." << endl;
    31263129            //NumBonds[Runner->nr]++;
    31273130          } else {
     
    37433746  bool flag = true;
    37443747
    3745 //  *out << Verbose(1) << "Begin of ScanForPeriodicCorrection." << endl;
     3748  *out << Verbose(1) << "Begin of ScanForPeriodicCorrection." << endl;
    37463749
    37473750  ColorList = (enum Shading *) Malloc(sizeof(enum Shading)*AtomCount, "molecule::ScanForPeriodicCorrection: *ColorList");
     
    37573760      for (int i=NDIM;i--;) {
    37583761        tmp = fabs(Binder->leftatom->x.x[i] - Binder->rightatom->x.x[i]);
    3759         //*out << Verbose(3) << "Checking " << i << "th distance of " << *Binder->leftatom << " to " << *Binder->rightatom << ": " << tmp << "." << endl;
     3762        *out << Verbose(3) << "Checking " << i << "th distance of " << *Binder->leftatom << " to " << *Binder->rightatom << ": " << tmp << "." << endl;
    37603763        if (tmp > BondDistance) {
    37613764          OtherBinder = Binder->next; // note down binding partner for later re-insertion
    37623765          unlink(Binder);   // unlink bond
    3763 //          *out << Verbose(2) << "Correcting at bond " << *Binder << "." << endl;
     3766          *out << Verbose(2) << "Correcting at bond " << *Binder << "." << endl;
    37643767          flag = true;
    37653768          break;
     
    37753778      }
    37763779      TranslationVector.MatrixMultiplication(matrix);
    3777       //*out << "Translation vector is ";
    3778       //TranslationVector.Output(out);
    3779       //*out << endl;
     3780      *out << "Translation vector is ";
     3781      TranslationVector.Output(out);
     3782      *out << endl;
    37803783      // apply to all atoms of first component via BFS
    37813784      for (int i=AtomCount;i--;)
     
    37993802      link(Binder, OtherBinder);
    38003803    } else {
    3801 //      *out << Verbose(2) << "No corrections for this fragment." << endl;
     3804      *out << Verbose(2) << "No corrections for this fragment." << endl;
    38023805    }
    38033806    //delete(CompStack);
     
    38083811  Free((void **)&ColorList, "molecule::ScanForPeriodicCorrection: *ColorList");
    38093812  Free((void **)&matrix, "molecule::ScanForPeriodicCorrection: *matrix");
    3810 //  *out << Verbose(1) << "End of ScanForPeriodicCorrection." << endl;
     3813  *out << Verbose(1) << "End of ScanForPeriodicCorrection." << endl;
    38113814};
    38123815
Note: See TracChangeset for help on using the changeset viewer.