Changeset 12d946 for src


Ignore:
Timestamp:
Sep 19, 2013, 8:23:53 PM (11 years ago)
Author:
Frederik Heber <heber@…>
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:
25e18e7
Parents:
7e3f11a
git-author:
Frederik Heber <heber@…> (08/26/13 15:00:46)
git-committer:
Frederik Heber <heber@…> (09/19/13 20:23:53)
Message:

Implemented LoadSessionAction.

  • this it also used in builder_init.cpp.
  • added load-session to tokens not stored in ActionQueue::outputAs...().
  • added regression test which loads a stored action and stores again to compare the two scripts.
Location:
src/Actions
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/ActionQueue.cpp

    r7e3f11a r12d946  
    9797      ++iter) {
    9898    // skip store-session in printed list
    99     if ((*iter)->getName() != std::string("store-session")) {
     99    if ( ((*iter)->getName() != std::string("store-session"))
     100        && ((*iter)->getName() != std::string("load-session"))) {
    100101      if (iter != queue.begin())
    101102        output << " ";
     
    115116      ++iter) {
    116117    // skip store-session in printed list
    117     if ((*iter)->getName() != std::string("store-session"))
     118    if ( ((*iter)->getName() != std::string("store-session"))
     119        && ((*iter)->getName() != std::string("load-session")))
    118120      (*iter)->outputAsPython(output, prefix);
    119121  }
  • src/Actions/GlobalListOfActions.hpp

    r7e3f11a r12d946  
    4848  (CommandHelp) \
    4949  (CommandHelpRedistribute) \
     50  (CommandLoadSession) \
    5051  (CommandSetRandomNumbersEngine) \
    5152  (CommandSetRandomNumbersDistribution) \
  • src/Actions/Makefile.am

    r7e3f11a r12d946  
    190190  Actions/CommandAction/HelpAction.cpp \
    191191  Actions/CommandAction/HelpRedistributeAction.cpp \
     192  Actions/CommandAction/LoadSessionAction.cpp \
    192193  Actions/CommandAction/StoreSessionAction.cpp \
    193194  Actions/CommandAction/VerboseAction.cpp \
     
    200201  Actions/CommandAction/HelpAction.hpp \
    201202  Actions/CommandAction/HelpRedistributeAction.hpp \
     203  Actions/CommandAction/LoadSessionAction.hpp \
    202204  Actions/CommandAction/StoreSessionAction.hpp \
    203205  Actions/CommandAction/VerboseAction.hpp \
     
    210212  Actions/CommandAction/HelpAction.def \
    211213  Actions/CommandAction/HelpRedistributeAction.def \
     214  Actions/CommandAction/LoadSessionAction.def \
    212215  Actions/CommandAction/StoreSessionAction.def \
    213216  Actions/CommandAction/VerboseAction.def \
Note: See TracChangeset for help on using the changeset viewer.