Changeset 329d0f for molecuilder/src/molecules.cpp
- Timestamp:
- Jun 23, 2008, 11:23:50 AM (17 years ago)
- Children:
- d7b1bf
- Parents:
- 7a40c8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecules.cpp
r7a40c8 r329d0f 3123 3123 // *out << ", whose son is " << *SonList[OtherFather->nr] << "." << endl; 3124 3124 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; 3126 3129 //NumBonds[Runner->nr]++; 3127 3130 } else { … … 3743 3746 bool flag = true; 3744 3747 3745 //*out << Verbose(1) << "Begin of ScanForPeriodicCorrection." << endl;3748 *out << Verbose(1) << "Begin of ScanForPeriodicCorrection." << endl; 3746 3749 3747 3750 ColorList = (enum Shading *) Malloc(sizeof(enum Shading)*AtomCount, "molecule::ScanForPeriodicCorrection: *ColorList"); … … 3757 3760 for (int i=NDIM;i--;) { 3758 3761 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; 3760 3763 if (tmp > BondDistance) { 3761 3764 OtherBinder = Binder->next; // note down binding partner for later re-insertion 3762 3765 unlink(Binder); // unlink bond 3763 //*out << Verbose(2) << "Correcting at bond " << *Binder << "." << endl;3766 *out << Verbose(2) << "Correcting at bond " << *Binder << "." << endl; 3764 3767 flag = true; 3765 3768 break; … … 3775 3778 } 3776 3779 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; 3780 3783 // apply to all atoms of first component via BFS 3781 3784 for (int i=AtomCount;i--;) … … 3799 3802 link(Binder, OtherBinder); 3800 3803 } else { 3801 //*out << Verbose(2) << "No corrections for this fragment." << endl;3804 *out << Verbose(2) << "No corrections for this fragment." << endl; 3802 3805 } 3803 3806 //delete(CompStack); … … 3808 3811 Free((void **)&ColorList, "molecule::ScanForPeriodicCorrection: *ColorList"); 3809 3812 Free((void **)&matrix, "molecule::ScanForPeriodicCorrection: *matrix"); 3810 //*out << Verbose(1) << "End of ScanForPeriodicCorrection." << endl;3813 *out << Verbose(1) << "End of ScanForPeriodicCorrection." << endl; 3811 3814 }; 3812 3815
Note:
See TracChangeset
for help on using the changeset viewer.