Changeset f14a52


Ignore:
Timestamp:
Jun 23, 2008, 11:23:50 AM (17 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
1f066fe
Parents:
256520
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
  • src/molecules.cpp

    r256520 rf14a52  
    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.