source: src/Actions/GeometryAction/GeometryInputToVectorAction.def@ 3c9ac3

Action_Thermostats Adding_MD_integration_tests Adding_StructOpt_integration_tests AutomationFragmentation_failures Candidate_v1.6.1 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
Last change on this file since 3c9ac3 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.4 KB
Line 
1/*
2 * GeometryInputToVectorAction.cpp
3 *
4 * Created on: Mar 28, 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#include "Parameters/Validators/DummyValidator.hpp"
11
12// i.e. there is an integer with variable name Z that can be found in
13// ValueStorage by the token "Z" -> first column: int, Z, "Z"
14// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
15//#define paramtypes (const element *)(BoxVector) TODO: use a validator
16#define paramtypes (std::string)(Vector)
17#define paramtokens ("input-to-vector")("coordinates")
18#define paramdescriptions ("name for geometry object for reference as vector")("vector coordinates")
19#define paramreferences (name)(vec)
20#define paramdefaults (NOPARAM_DEFAULT())(NOPARAM_DEFAULT())
21#define paramvalids \
22(GeometryNameValidator()) \
23(DummyValidator<Vector>())
24
25#undef statetypes
26#undef statereferences
27
28// some defines for all the names, you may use ACTION, STATE and PARAMS
29#define CATEGORY Geometry
30#define MENUNAME "geometry"
31#define MENUPOSITION 1
32#define ACTIONNAME InputToVector
33#define TOKEN "input-to-vector"
34
35// finally the information stored in the ActionTrait specialization
36#define DESCRIPTION "stores the given vector as a named geometry object"
37#undef SHORTFORM
Note: See TracBrowser for help on using the repository browser.