Changeset f9183b
- Timestamp:
- Aug 28, 2010, 12:57:56 AM (14 years ago)
- 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:
- e8926e
- Parents:
- 231b5e
- git-author:
- Frederik Heber <heber@…> (08/27/10 09:44:17)
- git-committer:
- Frederik Heber <heber@…> (08/28/10 00:57:56)
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/atom_graphnode.cpp
r231b5e rf9183b 19 19 20 20 #include "Helpers/MemDebug.hpp" 21 22 #include <iostream> 21 23 22 24 #include "atom_graphnode.hpp" … … 41 43 void GraphNode::OutputGraphInfo() const 42 44 { 43 DoLog(2) && (Log() << Verbose(2) << "Atom " << getName() << " is " << ((SeparationVertex) ? "a" : "not a") << " separation vertex, components are "); 44 OutputComponentNumber(); 45 DoLog(2) && (Log() << Verbose(2) << "Atom " << getName() << " is " << ((SeparationVertex) ? "a" : "not a") << " separation vertex, components are " << *this); 45 46 DoLog(3) && (Log() << Verbose(3) << " with Lowpoint " << LowpointNr << " and Graph Nr. " << GraphNr << "." << endl); 46 47 }; … … 50 51 * \param *out output stream for debugging 51 52 */ 52 void GraphNode::OutputComponentNumber( ) const53 void GraphNode::OutputComponentNumber(ostream *out) const 53 54 { 54 if (ComponentNr != NULL) { 55 for (int i=0; ComponentNr[i] != -1; i++) 56 DoLog(2) && (Log() << Verbose(2) << ComponentNr[i] << " "); 57 } 55 *out << *this; 58 56 }; 59 57 58 ostream &operator<<(ostream &out, const GraphNode &a) 59 { 60 if (a.ComponentNr != NULL) { 61 for (int i=0; a.ComponentNr[i] != -1; i++) 62 out << a.ComponentNr[i]; 63 } 64 return out; 65 } -
src/atom_graphnode.hpp
r231b5e rf9183b 19 19 #endif 20 20 21 #include < fstream>21 #include <iosfwd> 22 22 23 23 #include "atom_graphnodeinfo.hpp" … … 35 35 36 36 void OutputGraphInfo() const; 37 void OutputComponentNumber( ) const;37 void OutputComponentNumber(ostream *out) const; 38 38 39 39 private: … … 41 41 }; 42 42 43 ostream &operator<<(ostream &out, const GraphNode &a); 44 43 45 #endif /* ATOM_GRAPHNODE_HPP_ */ -
src/molecule_graph.cpp
r231b5e rf9183b 653 653 if ((*BondRunner)->leftatom == *AtomRunner) { 654 654 Binder = *BondRunner; 655 DoLog(2) && (Log() << Verbose(2) << ((Binder->Type == TreeEdge) ? "TreeEdge " : "BackEdge ") << *Binder << ": <"); 656 DoLog(0) && (Log() << Verbose(0) << ((Binder->leftatom->SeparationVertex) ? "SP," : "") << "L" << Binder->leftatom->LowpointNr << " G" << Binder->leftatom->GraphNr << " Comp."); 657 Binder->leftatom->OutputComponentNumber(); 658 DoLog(0) && (Log() << Verbose(0) << " === "); 659 DoLog(0) && (Log() << Verbose(0) << ((Binder->rightatom->SeparationVertex) ? "SP," : "") << "L" << Binder->rightatom->LowpointNr << " G" << Binder->rightatom->GraphNr << " Comp."); 660 Binder->rightatom->OutputComponentNumber(); 661 DoLog(0) && (Log() << Verbose(0) << ">." << endl); 655 if (DoLog(2)) { 656 ostream &out = (Log() << Verbose(2)); 657 out << ((Binder->Type == TreeEdge) ? "TreeEdge " : "BackEdge ") << *Binder << ": <"; 658 out << ((Binder->leftatom->SeparationVertex) ? "SP," : "") << "L" << Binder->leftatom->LowpointNr << " G" << Binder->leftatom->GraphNr << " Comp."; 659 Binder->leftatom->OutputComponentNumber(&out); 660 out << " === "; 661 out << ((Binder->rightatom->SeparationVertex) ? "SP," : "") << "L" << Binder->rightatom->LowpointNr << " G" << Binder->rightatom->GraphNr << " Comp."; 662 Binder->rightatom->OutputComponentNumber(&out); 663 out << ">." << endl; 664 } 662 665 if (Binder->Cyclic) // cyclic ?? 663 666 DoLog(3) && (Log() << Verbose(3) << "Lowpoint at each side are equal: CYCLIC!" << endl);
Note:
See TracChangeset
for help on using the changeset viewer.