Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/AtomAction/AddAction.def

    re4afb4 r6ba9ba  
    77
    88// all includes and forward declarations necessary for non-integral types below
    9 #include "LinearAlgebra/BoxVector.hpp"
     9#include "LinearAlgebra/Vector.hpp"
    1010#include "World.hpp"
    1111class element;
    1212
     13#include "Parameters/Validators/Specific/BoxVectorValidator.hpp"
     14#include "Parameters/Validators/Specific/ElementValidator.hpp"
     15
    1316// i.e. there is an integer with variable name Z that can be found in
    1417// ValueStorage by the token "Z" -> first column: int, Z, "Z"
    15 // "undefine" if no parameters are required, use (NODEFAULT) for each (undefined) default value
    16 #define paramtypes (const element *)(BoxVector)
     18// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
     19//#define paramtypes (const element *)(BoxVector) TODO: use a validator
     20#define paramtypes (const element *)(Vector)
    1721#define paramtokens ("add-atom")("domain-position")
    1822#define paramdescriptions ("element of new atom")("position within current domain")
    1923#define paramreferences (elemental)(position)
    20 #define paramdefaults (NODEFAULT)(NODEFAULT)
     24#define paramdefaults (NOPARAM_DEFAULT)(NOPARAM_DEFAULT)
     25#define paramvalids \
     26(ElementValidator()) \
     27(BoxVectorValidator())
    2128
    2229#define statetypes (const atomId_t)
Note: See TracChangeset for help on using the changeset viewer.