Ignore:
Timestamp:
Apr 29, 2014, 12:42:43 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:
9bac15
Parents:
237f93
git-author:
Frederik Heber <heber@…> (01/11/14 20:57:55)
git-committer:
Frederik Heber <heber@…> (04/29/14 12:42:43)
Message:

FIX: SubgraphDissectionAction is now a MakroAction, fixed store-session.

  • store-session would skip the select-atoms part.
  • hence, now we just write SubgraphDissection() command to python script.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/FragmentationAction/MolecularDynamicsAction.hpp

    r237f93 rf47e00b  
    2121
    2222#endif /* MOLECULARDYNAMICSACTION_HPP_ */
    23 
    24 //// some derived names: if CATEGORY is not given, we don't prefix with it
    25 //#ifdef CATEGORY
    26 //#define ACTION BOOST_PP_CAT(CATEGORY, BOOST_PP_CAT(ACTIONNAME, Action))
    27 //#define COMMAND BOOST_PP_CAT(CATEGORY, ACTIONNAME)
    28 //#define PARAMS BOOST_PP_CAT(CATEGORY, BOOST_PP_CAT(ACTIONNAME, Parameters))
    29 //#else
    30 //#define ACTION BOOST_PP_CAT(ACTIONNAME, Action)
    31 //#define COMMAND ACTIONNAME
    32 //#define PARAMS BOOST_PP_CAT(ACTIONNAME, Parameters)
    33 //#endif
    34 //// check if no lists given
    35 //#ifndef paramtypes
    36 //#define MAXPARAMTYPES 0
    37 //#else
    38 //#define MAXPARAMTYPES BOOST_PP_SEQ_SIZE(paramtypes)
    39 //#endif
    40 //#ifndef paramdefaults
    41 //#define MAXPARAMDEFAULTS 0
    42 //#else
    43 //#define MAXPARAMDEFAULTS BOOST_PP_SEQ_SIZE(paramdefaults)
    44 //#endif
    45 //
    46 //namespace MoleCuilder {
    47 //
    48 //// print a list of type ref followed, i.e. "int i, double position"
    49 //#define type_list(z,n,TYPELIST, VARLIST) \
    50 //  BOOST_PP_COMMA_IF(n)\
    51 //  BOOST_PP_SEQ_ELEM(n, TYPELIST) \
    52 //  BOOST_PP_SEQ_ELEM(n, VARLIST)
    53 //
    54 //void COMMAND(
    55 //#if defined paramtypes && defined paramreferences
    56 //#define BOOST_PP_LOCAL_MACRO(n) type_list(~, n, paramtypes, paramreferences)
    57 //#define BOOST_PP_LOCAL_LIMITS  (0, MAXPARAMTYPES-1)
    58 //#include BOOST_PP_LOCAL_ITERATE()
    59 //#endif
    60 //    );
    61 //
    62 //class FragmentationMolecularDynamicsAction;
    63 //
    64 //template <>
    65 //class ActionTraits<ACTION> : public ActionTrait {
    66 //public:
    67 //  ActionTraits() :
    68 //#ifndef SHORTFORM
    69 //    ActionTrait(OptionTrait(TOKEN, &typeid(void), DESCRIPTION, std::string()))
    70 //#else
    71 //    ActionTrait(OptionTrait(TOKEN, &typeid(void), DESCRIPTION, std::string(), SHORTFORM))
    72 //#endif /* SHORTFORM */
    73 //  {
    74 //  // initialize remainder of action info
    75 //#ifdef MENUNAME
    76 //    MenuTitle = MENUNAME;
    77 //#endif
    78 //#ifdef MENUPOSITION
    79 //    MenuPosition = MENUPOSITION;
    80 //#endif
    81 //
    82 //    // we got no options to initialize
    83 //  }
    84 //
    85 //  virtual ~ActionTraits() {
    86 //    //std::cout << "ActionTraits<" << BOOST_PP_STRINGIZE(ACTION) << ">::~ActionTraits() on instance " << this << " with name " << getName() << " called." << std::endl;
    87 //  }
    88 //};
    89 //
    90 //class FragmentationMolecularDynamicsAction : public MakroAction
    91 //{
    92 //public:
    93 //  FragmentationMolecularDynamicsAction();
    94 //  virtual ~FragmentationMolecularDynamicsAction();
    95 //
    96 //  // must be called after all primitive actions are present
    97 //  void prepare(ActionRegistry &AR);
    98 //  // must be called before alle primitive actions are removed
    99 //  void unprepare(ActionRegistry &AR);
    100 //
    101 //  virtual ActionState::ptr performCall();
    102 //  virtual ActionState::ptr performUndo(ActionState::ptr);
    103 //  virtual ActionState::ptr performRedo(ActionState::ptr);
    104 //
    105 //private:
    106 //  //!> flag to check whether actions have been prepared
    107 //  static bool isPrepared;
    108 //  //!> sequence of actions for this macro action
    109 //  static ActionSequence actions;
    110 //};
    111 //
    112 //}
    113 //
    114 //#undef ACTION
    115 //#undef COMMAND
    116 //#undef COMMANDFULL
    117 //#undef PARAMS
    118 //
    119 //#undef ACTIONNAME
    120 //#undef CATEGORY
    121 //#undef MENUNAME
    122 //#undef MENUPOSITION
    123 //#undef TOKEN
    124 //
    125 //#undef DESCRIPTION
    126 //#undef SHORTFORM
    127 //
    128 //#endif /* MOLECULARDYNAMICSACTION_HPP_ */
Note: See TracChangeset for help on using the changeset viewer.