Changeset 7294dc for src/Fragmentation
- Timestamp:
- Jun 21, 2017, 9:51:24 PM (8 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, AutomationFragmentation_failures, Candidate_v1.6.1, ChangeBugEmailaddress, ChemicalSpaceEvaluator, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph_documentation, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, ForceAnnealing_oldresults, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, Gui_displays_atomic_force_velocity, IndependentFragmentGrids_IntegrationTest, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, StoppableMakroAction, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps
- Children:
- 101d2d
- Parents:
- 9f2071
- git-author:
- Frederik Heber <heber@…> (03/23/17 17:11:47)
- git-committer:
- Frederik Heber <frederik.heber@…> (06/21/17 21:51:24)
- Location:
- src/Fragmentation/Exporters
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Fragmentation/Exporters/HydrogenPool.cpp
r9f2071 r7294dc 91 91 +" from pool is already in use."); 92 92 LOG(3, "DEBUG: Leasing " << *Walker << "."); 93 UpdateSteps(Walker);94 93 HydrogenInUse.insert( std::make_pair( Walker->getId(), Walker) ); 95 94 HydrogenQueue.pop_front(); 96 95 97 96 return Walker; 98 }99 100 void HydrogenPool::UpdateSteps(atom * _atom) const101 {102 // make sure we are up to current time step103 const size_t CurrentTime = WorldTime::getTime();104 for (size_t step = _atom->getTrajectorySize(); step <= CurrentTime; ++step)105 _atom->UpdateStep(step);106 97 } 107 98 -
src/Fragmentation/Exporters/HydrogenPool.hpp
r9f2071 r7294dc 73 73 void cleanup(); 74 74 75 /** Helper function to make sure \a _atom is up to current time step.76 *77 * \param _atom atom to bring trajectory size up to speed78 */79 void UpdateSteps(atom * _atom) const;80 81 82 75 private: 83 76 //!> typedef for the deque of available hydrogens.
Note:
See TracChangeset
for help on using the changeset viewer.