Changeset ea7176 for src/molecule_graph.cpp
- Timestamp:
- Mar 19, 2010, 1:29:01 PM (16 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:
- e0b6fd
- Parents:
- 80c63d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/molecule_graph.cpp
r80c63d rea7176 125 125 126 126 // count atoms in molecule = dimension of matrix (also give each unique name and continuous numbering) 127 CountAtoms(); 128 Log() << Verbose(1) << "AtomCount " << AtomCount << " and bonddistance is " << bonddistance << "." << endl; 129 130 if ((AtomCount > 1) && (bonddistance > 1.)) { 127 Log() << Verbose(1) << "AtomCount " << getAtomCount() << " and bonddistance is " << bonddistance << "." << endl; 128 129 if ((getAtomCount() > 1) && (bonddistance > 1.)) { 131 130 Log() << Verbose(2) << "Creating Linked Cell structure ... " << endl; 132 131 LC = new LinkedCell(this, bonddistance); … … 191 190 ActOnAllAtoms( &atom::OutputBondOfAtom ); 192 191 } else 193 Log() << Verbose(1) << "AtomCount is " << AtomCount<< ", thus no bonds, no connections!." << endl;192 Log() << Verbose(1) << "AtomCount is " << getAtomCount() << ", thus no bonds, no connections!." << endl; 194 193 Log() << Verbose(0) << "End of CreateAdjacencyList." << endl; 195 194 if (free_BG) … … 233 232 Log() << Verbose(0) << " done." << endl; 234 233 } else { 235 Log() << Verbose(1) << "BondCount is " << BondCount << ", no bonds between any of the " << AtomCount<< " atoms." << endl;234 Log() << Verbose(1) << "BondCount is " << BondCount << ", no bonds between any of the " << getAtomCount() << " atoms." << endl; 236 235 } 237 236 Log() << Verbose(0) << No << " bonds could not be corrected." << endl; … … 453 452 void DepthFirstSearchAnalysis_Init(struct DFSAccounting &DFS, const molecule * const mol) 454 453 { 455 DFS.AtomStack = new StackClass<atom *> (mol-> AtomCount);454 DFS.AtomStack = new StackClass<atom *> (mol->getAtomCount()); 456 455 DFS.CurrentGraphNr = 0; 457 456 DFS.ComponentNumber = 0; … … 847 846 Root = *iter; 848 847 849 if (MinimumRingSize[Root->GetTrueFather()->nr] == mol-> AtomCount) { // check whether MinimumRingSize is set, if not BFS to next where it is848 if (MinimumRingSize[Root->GetTrueFather()->nr] == mol->getAtomCount()) { // check whether MinimumRingSize is set, if not BFS to next where it is 850 849 Walker = Root; 851 850 852 851 //Log() << Verbose(1) << "---------------------------------------------------------------------------------------------------------" << endl; 853 CyclicStructureAnalysis_BFSToNextCycle(Root, Walker, MinimumRingSize, mol-> AtomCount);852 CyclicStructureAnalysis_BFSToNextCycle(Root, Walker, MinimumRingSize, mol->getAtomCount()); 854 853 855 854 } … … 881 880 int MinRingSize = -1; 882 881 883 InitializeBFSAccounting(BFS, AtomCount);882 InitializeBFSAccounting(BFS, getAtomCount()); 884 883 885 884 //Log() << Verbose(1) << "Back edge list - "; … … 1117 1116 CurrentBondsOfAtom = -1; // we count one too far due to line end 1118 1117 // parse into structure 1119 if ((AtomNr >= 0) && (AtomNr < AtomCount)) {1118 if ((AtomNr >= 0) && (AtomNr < getAtomCount())) { 1120 1119 Walker = ListOfAtoms[AtomNr]; 1121 1120 while (!line.eof()) … … 1296 1295 AddedAtomList[Root->nr] = Mol->AddCopyAtom(Root); 1297 1296 1298 BreadthFirstSearchAdd_Init(BFS, Root, BondOrder, AtomCount, AddedAtomList);1297 BreadthFirstSearchAdd_Init(BFS, Root, BondOrder, getAtomCount(), AddedAtomList); 1299 1298 1300 1299 // and go on ... Queue always contains all lightgray vertices … … 1407 1406 1408 1407 Log() << Verbose(2) << "Begin of BuildInducedSubgraph." << endl; 1409 BuildInducedSubgraph_Init(ParentList, Father-> AtomCount);1408 BuildInducedSubgraph_Init(ParentList, Father->getAtomCount()); 1410 1409 BuildInducedSubgraph_FillParentList(this, Father, ParentList); 1411 1410 status = BuildInducedSubgraph_CreateBondsFromParent(this, Father, ParentList);
Note:
See TracChangeset
for help on using the changeset viewer.