Candidate_v1.7.0
        stable
      
      
      
| Rev | Line |   | 
|---|
| [8bb05e] | 1 | /*
 | 
|---|
 | 2 |  * AddAction.def
 | 
|---|
 | 3 |  *
 | 
|---|
 | 4 |  *  Created on: Aug 26, 2010
 | 
|---|
 | 5 |  *      Author: heber
 | 
|---|
 | 6 |  */
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 | // all includes and forward declarations necessary for non-integral types below
 | 
|---|
| [f10b0c] | 9 | #include "LinearAlgebra/Vector.hpp"
 | 
|---|
| [8bb05e] | 10 | #include "World.hpp"
 | 
|---|
 | 11 | class element;
 | 
|---|
| [399c69] | 12 | #include <map>
 | 
|---|
 | 13 | #include <vector>
 | 
|---|
 | 14 | typedef std::map< moleculeId_t, std::vector<AtomicInfo> > WalkersInMolecule_t;
 | 
|---|
| [8bb05e] | 15 | 
 | 
|---|
| [23958d] | 16 | #include "Parameters/Validators/Specific/BoxVectorValidator.hpp"
 | 
|---|
 | 17 | #include "Parameters/Validators/Specific/ElementValidator.hpp"
 | 
|---|
| [649aaa] | 18 | 
 | 
|---|
| [8bb05e] | 19 | // i.e. there is an integer with variable name Z that can be found in
 | 
|---|
 | 20 | // ValueStorage by the token "Z" -> first column: int, Z, "Z"
 | 
|---|
| [6ba9ba] | 21 | // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
 | 
|---|
| [f10b0c] | 22 | //#define paramtypes (const element *)(BoxVector) TODO: use a validator
 | 
|---|
 | 23 | #define paramtypes (const element *)(Vector)
 | 
|---|
| [e4afb4] | 24 | #define paramtokens ("add-atom")("domain-position")
 | 
|---|
 | 25 | #define paramdescriptions ("element of new atom")("position within current domain")
 | 
|---|
| [8bb05e] | 26 | #define paramreferences (elemental)(position)
 | 
|---|
| [6ba9ba] | 27 | #define paramdefaults (NOPARAM_DEFAULT)(NOPARAM_DEFAULT)
 | 
|---|
| [23958d] | 28 | #define paramvalids \
 | 
|---|
 | 29 | (ElementValidator()) \
 | 
|---|
 | 30 | (BoxVectorValidator())
 | 
|---|
| [8bb05e] | 31 | 
 | 
|---|
| [399c69] | 32 | #define statetypes (WalkersInMolecule_t)
 | 
|---|
 | 33 | #define statereferences (WalkersInMolecule)
 | 
|---|
| [8bb05e] | 34 | 
 | 
|---|
 | 35 | // some defines for all the names, you may use ACTION, STATE and PARAMS
 | 
|---|
 | 36 | #define CATEGORY Atom
 | 
|---|
| [052bfd8] | 37 | #define MENUNAME "atom"
 | 
|---|
 | 38 | #define MENUPOSITION 1
 | 
|---|
| [8bb05e] | 39 | #define ACTIONNAME Add
 | 
|---|
 | 40 | #define TOKEN "add-atom"
 | 
|---|
| [24fbf3] | 41 | 
 | 
|---|
 | 42 | // finally the information stored in the ActionTrait specialization
 | 
|---|
 | 43 | #define DESCRIPTION "add atom of specified element"
 | 
|---|
 | 44 | #define SHORTFORM "a"
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.