Changeset 9317be
- Timestamp:
- Oct 20, 2011, 1:20:03 PM (13 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:
- 539f32
- Parents:
- 025048
- git-author:
- Frederik Heber <heber@…> (10/20/11 13:18:47)
- git-committer:
- Frederik Heber <heber@…> (10/20/11 13:20:03)
- Location:
- src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/GraphAction/SubgraphDissectionAction.cpp
r025048 r9317be 93 93 if (mol->getBondCount() == 0) { 94 94 BondGraph *BG = World::getInstance().getBondGraph(); 95 molecule::atomVectorSet = mol->getAtomSet();95 World::AtomComposite Set = mol->getAtomSet(); 96 96 BG->CreateAdjacency(Set); 97 97 // if (mol->getBondCount() == 0) { -
src/Actions/MoleculeAction/BondFileAction.cpp
r025048 r9317be 50 50 << ", adding " << params.id_offset << " to each id."); 51 51 ifstream input(params.bondfile.string().c_str()); 52 molecule::atomVectorSet = mol->getAtomSet();52 World::AtomComposite Set = mol->getAtomSet(); 53 53 World::getInstance().getBondGraph()->CreateAdjacencyListFromDbondFile(Set, &input, params.skiplines, params.id_offset); 54 54 input.close(); -
src/Actions/MoleculeAction/FillVoidWithMoleculeAction.cpp
r025048 r9317be 73 73 molecule *filler = World::getInstance().getMolecule(MoleculeByOrder(-1)); // get last molecule 74 74 filler->SetNameFromFilename(params.fillername.string().c_str()); 75 molecule::atomVectorSet = filler->getAtomSet();75 World::AtomComposite Set = filler->getAtomSet(); 76 76 World::getInstance().getBondGraph()->CreateAdjacency(Set); 77 77 -
src/Actions/MoleculeAction/FillWithMoleculeAction.cpp
r025048 r9317be 83 83 // filler->AddBond(first, third, 1); 84 84 // filler->AddBond(second, third, 1); 85 molecule::atomVectorSet = filler->getAtomSet();85 World::AtomComposite Set = filler->getAtomSet(); 86 86 World::getInstance().getBondGraph()->CreateAdjacency(Set); 87 87 // filler->SetNameFromFilename("water"); -
src/Analysis/unittests/AnalysisBondsUnitTest.cpp
r025048 r9317be 109 109 CPPUNIT_ASSERT_EQUAL( 1.5, BG->GetBondLength(5,5) ); 110 110 111 molecule::atomVectorSet = TestMolecule->getAtomSet();111 World::AtomComposite Set = TestMolecule->getAtomSet(); 112 112 BG->CreateAdjacency(Set); 113 113 }; -
src/Analysis/unittests/CountBondsUnitTest.cpp
r025048 r9317be 112 112 113 113 // construct bond graphs 114 molecule::atomVectorSet1 = TestMolecule1->getAtomSet();114 World::AtomComposite Set1 = TestMolecule1->getAtomSet(); 115 115 BG->CreateAdjacency(Set1); 116 116 CPPUNIT_ASSERT( TestMolecule1->getBondCount() != 0); 117 molecule::atomVectorSet2 = TestMolecule2->getAtomSet();117 World::AtomComposite Set2 = TestMolecule2->getAtomSet(); 118 118 BG->CreateAdjacency(Set2); 119 119 CPPUNIT_ASSERT( TestMolecule2->getBondCount() != 0); -
src/Graph/unittests/BondGraphUnitTest.cpp
r025048 r9317be 151 151 Runner++; 152 152 CPPUNIT_ASSERT_EQUAL( true , BG->LoadBondLengthTable(test) ); 153 molecule::atomVectorSet = TestMolecule->getAtomSet();153 World::AtomComposite Set = TestMolecule->getAtomSet(); 154 154 BG->CreateAdjacency(Set); 155 155 CPPUNIT_ASSERT( TestMolecule->getBondCount() != 0); … … 163 163 164 164 CPPUNIT_ASSERT_EQUAL( false , BG->LoadBondLengthTable(dummy) ); 165 molecule::atomVectorSet = TestMolecule->getAtomSet();165 World::AtomComposite Set = TestMolecule->getAtomSet(); 166 166 BG->CreateAdjacency(Set); 167 167 CPPUNIT_ASSERT( TestMolecule->getBondCount() != 0); -
src/molecule.cpp
r025048 r9317be 233 233 } 234 234 235 molecule::atomVectormolecule::getAtomSet() const236 { 237 atomVectorvector_of_atoms;235 World::AtomComposite molecule::getAtomSet() const 236 { 237 World::AtomComposite vector_of_atoms; 238 238 BOOST_FOREACH(atom *_atom, atoms) 239 239 vector_of_atoms.push_back(_atom); -
src/molecule.hpp
r025048 r9317be 69 69 public: 70 70 typedef ATOMSET(std::list) atomSet; 71 typedef ATOMSET(std::vector) atomVector;72 71 typedef std::set<atomId_t> atomIdSet; 73 72 typedef ObservedIterator<atomSet> iterator; … … 125 124 virtual bool changeId(atomId_t newId); 126 125 127 atomVectorgetAtomSet() const;126 World::AtomComposite getAtomSet() const; 128 127 129 128 iterator begin(); -
src/molecule_fragmentation.cpp
r025048 r9317be 681 681 ++iter) { 682 682 // correct bond degree 683 molecule::atomVectorSet = (*iter)->getAtomSet();683 World::AtomComposite Set = (*iter)->getAtomSet(); 684 684 World::getInstance().getBondGraph()->CorrectBondDegree(Set); 685 685 }
Note:
See TracChangeset
for help on using the changeset viewer.