Changeset 72e40d0 for src/Actions
- Timestamp:
- Oct 20, 2016, 8:54:48 PM (8 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, 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_ChronosMutex, Fix_ForceAnnealing, Fix_ParseParticles, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, GeometryObjects, Gui_displays_atomic_force_velocity, IndependentFragmentGrids_IntegrationTest, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, RotateToPrincipalAxisSystem_UndoRedo, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, ThirdParty_MPQC_rebuilt_buildsystem, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes, stable
- Children:
- d24750
- Parents:
- a1c8fa
- git-author:
- Frederik Heber <heber@…> (09/27/16 11:30:09)
- git-committer:
- Frederik Heber <heber@…> (10/20/16 20:54:48)
- Location:
- src/Actions
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/FragmentationAction/MolecularDynamicsAction.cpp
ra1c8fa r72e40d0 63 63 // forces are set according to summed fragmentary contributions. This is much cleaner. 64 64 prototype_actions.addAction(AR.getActionByName(std::string("verlet-integration")).clone()); 65 prototype_actions.addAction(AR.getActionByName(std::string("step-world-time")).clone()); 65 66 prototype_actions.addAction(AR.getActionByName(std::string("output")).clone()); 66 67 prototype_actions.addAction(AR.getActionByName(std::string("clear-fragment-results")).clone()); -
src/Actions/FragmentationAction/StructuralOptimizationAction.cpp
ra1c8fa r72e40d0 70 70 prototype_actions.addAction(AR.getActionByName(std::string("analyse-fragment-results")).clone()); 71 71 prototype_actions.addAction(AR.getActionByName(std::string("force-annealing")).clone()); 72 prototype_actions.addAction(AR.getActionByName(std::string("step-world-time")).clone()); 72 73 prototype_actions.addAction(AR.getActionByName(std::string("output")).clone()); 73 74 prototype_actions.addAction(AR.getActionByName(std::string("clear-fragment-results")).clone()); -
src/Actions/GlobalListOfActions.hpp
ra1c8fa r72e40d0 161 161 (WorldSetBoundaryConditions) \ 162 162 (WorldSetDefaultName) \ 163 (WorldSetWorldTime) 163 (WorldSetWorldTime) \ 164 (WorldStepWorldTime) 164 165 165 166 // extend list of actions in case levmar is available -
src/Actions/Makefile.am
ra1c8fa r72e40d0 605 605 Actions/WorldAction/SetBoundaryConditionsAction.cpp \ 606 606 Actions/WorldAction/SetDefaultNameAction.cpp \ 607 Actions/WorldAction/SetWorldTimeAction.cpp 607 Actions/WorldAction/SetWorldTimeAction.cpp \ 608 Actions/WorldAction/StepWorldTimeAction.cpp 608 609 WORLDACTIONHEADER = \ 609 610 Actions/WorldAction/AddEmptyBoundaryAction.hpp \ … … 619 620 Actions/WorldAction/SetBoundaryConditionsAction.hpp \ 620 621 Actions/WorldAction/SetDefaultNameAction.hpp \ 621 Actions/WorldAction/SetWorldTimeAction.hpp 622 Actions/WorldAction/SetWorldTimeAction.hpp \ 623 Actions/WorldAction/StepWorldTimeAction.hpp 622 624 WORLDACTIONDEFS = \ 623 625 Actions/WorldAction/AddEmptyBoundaryAction.def \ … … 633 635 Actions/WorldAction/SetBoundaryConditionsAction.def \ 634 636 Actions/WorldAction/SetDefaultNameAction.def \ 635 Actions/WorldAction/SetWorldTimeAction.def 637 Actions/WorldAction/SetWorldTimeAction.def \ 638 Actions/WorldAction/StepWorldTimeAction.def 636 639 637 640 #ACTIONPYTHONSOURCE_WITHDIR = $(ACTIONPROTOTYPESSOURCE:Action.cpp=Action.python.cpp) -
src/Actions/MoleculeAction/VerletIntegrationAction.cpp
ra1c8fa r72e40d0 98 98 Verlet(CurrentStep+1, 1, 0, params.FixedCenterOfMass.get()); 99 99 LOG(0, "STATUS: Successfully performed updates on velocity and position."); 100 // increment to next time step: re-creates bond graph101 World::getInstance().setTime(CurrentStep+1);100 // // increment to next time step: re-creates bond graph 101 // World::getInstance().setTime(CurrentStep+1); 102 102 103 103 // create undo state for all selected atoms (redo info): … … 131 131 // go back one step 132 132 const size_t CurrentStep = WorldTime::getInstance().getTime(); 133 World::getInstance().setTime(CurrentStep-1);133 // World::getInstance().setTime(CurrentStep-1); 134 134 135 135 // remove current step for all modified atoms 136 removeLastStep(getIdsFromAtomicInfo(state->UndoInfo), CurrentStep );136 removeLastStep(getIdsFromAtomicInfo(state->UndoInfo), CurrentStep+1); 137 137 138 138 // and set back the old step (forces have been changed) … … 151 151 152 152 // set stored new state 153 size_t CurrentStep = WorldTime::getInstance().getTime() +1;154 addNewStep(state->UndoInfo, CurrentStep );153 size_t CurrentStep = WorldTime::getInstance().getTime(); 154 addNewStep(state->UndoInfo, CurrentStep+1); 155 155 156 156 // add a new time step 157 World::getInstance().setTime(CurrentStep );157 World::getInstance().setTime(CurrentStep+1); 158 158 159 159 // and set positions of the new step 160 160 ResetAtomPosition(state->UndoInfo, state->UpdatedStep[PositionIndex]); 161 162 // step back to old time step 163 World::getInstance().setTime(CurrentStep-1); 161 164 162 165 return ActionState::ptr(_state);
Note:
See TracChangeset
for help on using the changeset viewer.