Action_Thermostats
        Adding_MD_integration_tests
        Adding_StructOpt_integration_tests
        AutomationFragmentation_failures
        Candidate_v1.6.1
        Candidate_v1.7.0
        ChemicalSpaceEvaluator
        Enhanced_StructuralOptimization
        Enhanced_StructuralOptimization_continued
        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
        stable
      
      
        
          | Last change
 on this file since b10593 was             987145, checked in by Frederik Heber <frederik.heber@…>, 8 years ago | 
        
          | 
Added four GeometryActions to convert atom positions into vectors.
 added reverse switch to distance and plane to vector Actions.
InputToVector has coordinates to differentiate from position option. This
eases use with CommandLineParser where option names need to be unique.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            1.3 KB | 
      
      
| Line |  | 
|---|
| 1 | /* | 
|---|
| 2 | * GeometryPositionToVectorAction.cpp | 
|---|
| 3 | * | 
|---|
| 4 | *  Created on: Mar 27, 2017 | 
|---|
| 5 | *      Author: heber | 
|---|
| 6 | */ | 
|---|
| 7 |  | 
|---|
| 8 | // all includes and forward declarations necessary for non-integral types below | 
|---|
| 9 | #include "Parameters/Validators/Specific/GeometryNameValidator.hpp" | 
|---|
| 10 |  | 
|---|
| 11 | // i.e. there is an integer with variable name Z that can be found in | 
|---|
| 12 | // ValueStorage by the token "Z" -> first column: int, Z, "Z" | 
|---|
| 13 | // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value | 
|---|
| 14 | //#define paramtypes (const element *)(BoxVector) TODO: use a validator | 
|---|
| 15 | #define paramtypes (std::string) | 
|---|
| 16 | #define paramtokens ("position-to-vector") | 
|---|
| 17 | #define paramdescriptions ("name for geometry object for reference as vector") | 
|---|
| 18 | #define paramreferences (name) | 
|---|
| 19 | #define paramdefaults (NOPARAM_DEFAULT()) | 
|---|
| 20 | #define paramvalids \ | 
|---|
| 21 | (GeometryNameValidator()) | 
|---|
| 22 |  | 
|---|
| 23 | #define statetypes (Vector) | 
|---|
| 24 | #define statereferences (position) | 
|---|
| 25 |  | 
|---|
| 26 | // some defines for all the names, you may use ACTION, STATE and PARAMS | 
|---|
| 27 | #define CATEGORY Geometry | 
|---|
| 28 | #define MENUNAME "geometry" | 
|---|
| 29 | #define MENUPOSITION 1 | 
|---|
| 30 | #define ACTIONNAME PositionToVector | 
|---|
| 31 | #define TOKEN "position-to-vector" | 
|---|
| 32 |  | 
|---|
| 33 | // finally the information stored in the ActionTrait specialization | 
|---|
| 34 | #define DESCRIPTION "stores the position of the selected atom as a named geometry object" | 
|---|
| 35 | #undef SHORTFORM | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.