Changeset 0e894a for src/Parser/PdbParser.cpp
- Timestamp:
- Jul 12, 2017, 7:10:07 PM (7 years ago)
- Branches:
- Action_Thermostats, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, AutomationFragmentation_failures, Candidate_v1.6.1, ChemicalSpaceEvaluator, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, Fix_Verbose_Codepatterns, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, Gui_displays_atomic_force_velocity, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, PythonUI_with_named_parameters, Recreated_GuiChecks, StoppableMakroAction, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps
- Children:
- 33af20
- Parents:
- 220d2c
- git-author:
- Frederik Heber <frederik.heber@…> (06/17/17 23:09:19)
- git-committer:
- Frederik Heber <frederik.heber@…> (07/12/17 19:10:07)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/PdbParser.cpp
r220d2c r0e894a 198 198 199 199 // check for maximum number of time steps 200 size_t max_timesteps = 0; 201 for (vector<const atom *>::const_iterator atomIt = AtomList.begin(); 202 atomIt != AtomList.end(); atomIt++) { 203 const atom * _atom = *atomIt; 204 LOG(4, "INFO: Atom " << _atom->getName() << " " 205 << *dynamic_cast<const AtomInfo *>(_atom) << "."); 206 if (_atom->getTrajectorySize() > max_timesteps) 207 max_timesteps = _atom->getTrajectorySize(); 208 } 209 LOG(2,"INFO: Found a maximum of " << max_timesteps << " time steps to store."); 200 std::pair<size_t, size_t> minmax_trajectories = 201 getMinMaxTrajectories(AtomList); 202 LOG(2, "INFO: There are " << minmax_trajectories.second << " steps to save."); 210 203 211 204 // re-distribute serials … … 222 215 223 216 // store all time steps (always do first step) 224 for (size_t step = 0; (step == 0) || (step < m ax_timesteps); ++step) {217 for (size_t step = 0; (step == 0) || (step < minmax_trajectories.second); ++step) { 225 218 { 226 219 // add initial remark
Note:
See TracChangeset
for help on using the changeset viewer.