| [83e90c] | 1 | /*
 | 
|---|
 | 2 |  * GlobalListOfActions.hpp
 | 
|---|
 | 3 |  *
 | 
|---|
 | 4 |  *  Created on: Sep 21, 2011
 | 
|---|
 | 5 |  *      Author: heber
 | 
|---|
 | 6 |  */
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 | #ifndef GLOBALLISTOFACTIONS_HPP_
 | 
|---|
 | 9 | #define GLOBALLISTOFACTIONS_HPP_
 | 
|---|
 | 10 | 
 | 
|---|
 | 11 | // include config.h
 | 
|---|
 | 12 | #ifdef HAVE_CONFIG_H
 | 
|---|
 | 13 | #include <config.h>
 | 
|---|
 | 14 | #endif
 | 
|---|
 | 15 | 
 | 
|---|
| [004d5c] | 16 | #include <boost/preprocessor/seq/push_back.hpp>
 | 
|---|
 | 17 | 
 | 
|---|
 | 18 | // this is global list of actions valid for all cases
 | 
|---|
 | 19 | #define GLOBALLISTOFACTIONS_initial \
 | 
|---|
 | 20 |   (Redo) \
 | 
|---|
| [22b786] | 21 |   (GraphUpdateMolecules) \
 | 
|---|
| [004d5c] | 22 |   (GraphCreateAdjacency) \
 | 
|---|
 | 23 |   (GraphDepthFirstSearch) \
 | 
|---|
| [560cbf] | 24 |   (GraphDestroyAdjacency) \
 | 
|---|
| [22b786] | 25 |   (GraphSubgraphDissection) \
 | 
|---|
| [004d5c] | 26 |   (MoleculeSaveTemperature) \
 | 
|---|
 | 27 |   (MoleculeCopy) \
 | 
|---|
 | 28 |   (MoleculeSuspendInWater) \
 | 
|---|
 | 29 |   (MoleculeFillWithMolecule) \
 | 
|---|
 | 30 |   (MoleculeRotateToPrincipalAxisSystem) \
 | 
|---|
 | 31 |   (MoleculeSaveAdjacency) \
 | 
|---|
 | 32 |   (MoleculeFillVoidWithMolecule) \
 | 
|---|
 | 33 |   (MoleculeVerletIntegration) \
 | 
|---|
 | 34 |   (MoleculeChangeName) \
 | 
|---|
| [8b886f] | 35 |   (MoleculeChangeBondAngle) \
 | 
|---|
| [004d5c] | 36 |   (MoleculeRotateAroundSelfByAngle) \
 | 
|---|
 | 37 |   (MoleculeSaveSelectedMolecules) \
 | 
|---|
 | 38 |   (MoleculeSaveBonds) \
 | 
|---|
| [3a51bd] | 39 |   (MoleculeStretchBond) \
 | 
|---|
| [004d5c] | 40 |   (MoleculeLinearInterpolationofTrajectories) \
 | 
|---|
 | 41 |   (MoleculeLoad) \
 | 
|---|
 | 42 |   (MoleculeBondFile) \
 | 
|---|
 | 43 |   (TesselationNonConvexEnvelope) \
 | 
|---|
 | 44 |   (TesselationConvexEnvelope) \
 | 
|---|
 | 45 |   (CommandElementDb) \
 | 
|---|
 | 46 |   (CommandVerbose) \
 | 
|---|
 | 47 |   (CommandWarranty) \
 | 
|---|
 | 48 |   (CommandVersion) \
 | 
|---|
 | 49 |   (CommandHelp) \
 | 
|---|
| [94d5ac6] | 50 |   (CommandHelpRedistribute) \
 | 
|---|
| [004d5c] | 51 |   (CommandBondLengthTable) \
 | 
|---|
 | 52 |   (CommandFastParsing) \
 | 
|---|
 | 53 |   (ParserSetTremoloAtomdata) \
 | 
|---|
 | 54 |   (ParserParseTremoloPotentials) \
 | 
|---|
 | 55 |   (ParserSaveSelectedAtomsAsExtTypes) \
 | 
|---|
 | 56 |   (ParserSetParserParameters) \
 | 
|---|
 | 57 |   (ParserSetOutputFormats) \
 | 
|---|
 | 58 |   (AnalysisCalculateBoundingBox) \
 | 
|---|
 | 59 |   (AnalysisCalculateCellVolume) \
 | 
|---|
 | 60 |   (AnalysisCalculateMolarMass) \
 | 
|---|
 | 61 |   (AnalysisDipoleAngularCorrelation) \
 | 
|---|
 | 62 |   (AnalysisDipoleCorrelation) \
 | 
|---|
 | 63 |   (AnalysisPairCorrelation) \
 | 
|---|
 | 64 |   (AnalysisPointCorrelation) \
 | 
|---|
 | 65 |   (AnalysisSurfaceCorrelation) \
 | 
|---|
 | 66 |   (AnalysisMolecularVolume) \
 | 
|---|
 | 67 |   (AnalysisPrincipalAxisSystem) \
 | 
|---|
 | 68 |   (CommandSetRandomNumbersEngine) \
 | 
|---|
 | 69 |   (CommandSetRandomNumbersDistribution) \
 | 
|---|
 | 70 |   (Undo) \
 | 
|---|
 | 71 |   (AtomSaveSelectedAtoms) \
 | 
|---|
 | 72 |   (AtomRotateAroundOriginByAngle) \
 | 
|---|
 | 73 |   (AtomChangeElement) \
 | 
|---|
 | 74 |   (AtomRemove) \
 | 
|---|
 | 75 |   (AtomTranslate) \
 | 
|---|
 | 76 |   (AtomAdd) \
 | 
|---|
| [f63e41] | 77 |   (BondAdd) \
 | 
|---|
 | 78 |   (BondRemove) \
 | 
|---|
| [004d5c] | 79 |   (WorldCenterInBox) \
 | 
|---|
 | 80 |   (WorldRepeatBox) \
 | 
|---|
 | 81 |   (WorldChangeBox) \
 | 
|---|
 | 82 |   (WorldCenterOnEdge) \
 | 
|---|
 | 83 |   (WorldSetWorldTime) \
 | 
|---|
 | 84 |   (WorldSetBoundaryConditions) \
 | 
|---|
| [5bcbc7] | 85 |   (WorldOutput) \
 | 
|---|
| [072f0e] | 86 |   (WorldOutputAs) \
 | 
|---|
| [004d5c] | 87 |   (WorldSetDefaultName) \
 | 
|---|
 | 88 |   (WorldScaleBox) \
 | 
|---|
 | 89 |   (WorldAddEmptyBoundary) \
 | 
|---|
 | 90 |   (WorldBoundInBox) \
 | 
|---|
 | 91 |   (WorldInput) \
 | 
|---|
 | 92 |   (SelectionNotMoleculeOfAtom) \
 | 
|---|
 | 93 |   (SelectionNotAllMolecules) \
 | 
|---|
 | 94 |   (SelectionNotMoleculeById) \
 | 
|---|
 | 95 |   (SelectionMoleculeByOrder) \
 | 
|---|
 | 96 |   (SelectionMoleculeOfAtom) \
 | 
|---|
 | 97 |   (SelectionNotMoleculeByOrder) \
 | 
|---|
 | 98 |   (SelectionMoleculeByName) \
 | 
|---|
 | 99 |   (SelectionMoleculeById) \
 | 
|---|
 | 100 |   (SelectionAllMolecules) \
 | 
|---|
 | 101 |   (SelectionClearAllMolecules) \
 | 
|---|
| [ebc499] | 102 |   (SelectionInvertMolecules) \
 | 
|---|
| [004d5c] | 103 |   (SelectionMoleculeByFormula) \
 | 
|---|
 | 104 |   (SelectionNotMoleculeByFormula) \
 | 
|---|
 | 105 |   (SelectionNotMoleculeByName) \
 | 
|---|
 | 106 |   (SelectionNotAtomById) \
 | 
|---|
 | 107 |   (SelectionNotAtomByOrder) \
 | 
|---|
 | 108 |   (SelectionAllAtoms) \
 | 
|---|
 | 109 |   (SelectionClearAllAtoms) \
 | 
|---|
| [ebc499] | 110 |   (SelectionInvertAtoms) \
 | 
|---|
| [004d5c] | 111 |   (SelectionNotAllAtoms) \
 | 
|---|
 | 112 |   (SelectionNotAtomByElement) \
 | 
|---|
| [eff536] | 113 |   (SelectionAllAtomsInsideVolume) \
 | 
|---|
| [004d5c] | 114 |   (SelectionAllAtomsOfMolecule) \
 | 
|---|
| [eff536] | 115 |   (SelectionNotAllAtomsInsideVolume) \
 | 
|---|
| [004d5c] | 116 |   (SelectionAtomByElement) \
 | 
|---|
 | 117 |   (SelectionNotAllAtomsOfMolecule) \
 | 
|---|
 | 118 |   (SelectionAtomById) \
 | 
|---|
 | 119 |   (SelectionAtomByOrder) \
 | 
|---|
| [70bce9] | 120 |   (SelectionAllShapes) \
 | 
|---|
| [663606] | 121 |   (SelectionShapeByName) \
 | 
|---|
| [a27dcb] | 122 |   (SelectionNotAllShapes) \
 | 
|---|
| [2c004d] | 123 |   (SelectionNotShapeByName) \
 | 
|---|
| [a3427f] | 124 |   (FragmentationAnalyseFragmentationResults) \
 | 
|---|
| [48d20d] | 125 |   (FragmentationFragmentation) \
 | 
|---|
| [5589e7e] | 126 |   (FragmentationStoreSaturatedFragment) \
 | 
|---|
| [f5724f] | 127 |   (PotentialFitParticleCharges) \
 | 
|---|
 | 128 |   (PotentialParseHomologies) \
 | 
|---|
 | 129 |   (PotentialSaveHomologies) \
 | 
|---|
| [004d5c] | 130 |   (FillRegularGrid) \
 | 
|---|
| [09eaac] | 131 |   (FillSurface) \
 | 
|---|
| [d475a6] | 132 |   (ShapeCombineShapes) \
 | 
|---|
| [f20da5] | 133 |   (ShapeCreateShape) \
 | 
|---|
| [0b5057] | 134 |   (ShapeRemoveShape) \
 | 
|---|
| [a2bbb1] | 135 |   (ShapeRotateShape) \
 | 
|---|
| [29ea65] | 136 |   (ShapeStretchShape) \
 | 
|---|
| [0b5057] | 137 |   (ShapeTranslateShape)
 | 
|---|
| [004d5c] | 138 | 
 | 
|---|
 | 139 | // we need to append the automation action in case we have the JobMarket
 | 
|---|
 | 140 | #ifdef HAVE_JOBMARKET
 | 
|---|
| [48d20d] | 141 | #define GLOBALLISTOFACTIONS_JOBMARKET \
 | 
|---|
| [004d5c] | 142 |     BOOST_PP_SEQ_PUSH_BACK( \
 | 
|---|
| [bae7bc] | 143 |         BOOST_PP_SEQ_PUSH_BACK( \
 | 
|---|
| [39986b] | 144 |             BOOST_PP_SEQ_PUSH_BACK( \
 | 
|---|
 | 145 |                 GLOBALLISTOFACTIONS_initial, \
 | 
|---|
 | 146 |                 FragmentationFragmentationAutomation \
 | 
|---|
 | 147 |             ), \
 | 
|---|
 | 148 |             FragmentationMolecularDynamics \
 | 
|---|
| [bae7bc] | 149 |         ), \
 | 
|---|
 | 150 |         FragmentationParseFragmentJobs \
 | 
|---|
 | 151 |     )
 | 
|---|
| [004d5c] | 152 | #else
 | 
|---|
| [48d20d] | 153 | #define GLOBALLISTOFACTIONS_JOBMARKET \
 | 
|---|
| [004d5c] | 154 |     GLOBALLISTOFACTIONS_initial
 | 
|---|
 | 155 | #endif /* HAVE_JOBMARKET */
 | 
|---|
| [83e90c] | 156 | 
 | 
|---|
| [48d20d] | 157 | #ifdef HAVE_LEVMAR
 | 
|---|
 | 158 | #define GLOBALLISTOFACTIONS_LEVMAR \
 | 
|---|
 | 159 |     BOOST_PP_SEQ_PUSH_BACK( \
 | 
|---|
 | 160 |         GLOBALLISTOFACTIONS_JOBMARKET, \
 | 
|---|
| [f5724f] | 161 |         PotentialFitPotential \
 | 
|---|
| [48d20d] | 162 |     )
 | 
|---|
 | 163 | #else
 | 
|---|
 | 164 | #define GLOBALLISTOFACTIONS_LEVMAR \
 | 
|---|
 | 165 |     GLOBALLISTOFACTIONS_JOBMARKET
 | 
|---|
 | 166 | #endif /* HAVE_LEVMAR */
 | 
|---|
 | 167 | 
 | 
|---|
 | 168 | // define final list
 | 
|---|
 | 169 | #define GLOBALLISTOFACTIONS GLOBALLISTOFACTIONS_LEVMAR
 | 
|---|
 | 170 | 
 | 
|---|
| [83e90c] | 171 | #endif /* GLOBALLISTOFACTIONS_HPP_ */
 | 
|---|
 | 172 | 
 | 
|---|