Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/WorldAction/CenterInBoxAction.def

    r23526c r6ba9ba  
    77
    88// all includes and forward declarations necessary for non-integral types below
    9 #include "Actions/Values.hpp"
    10 #include "Box.hpp"
    11 #include "LinearAlgebra/Vector.hpp"
    12 #include <boost/shared_ptr.hpp>
     9#include "LinearAlgebra/RealSpaceMatrix.hpp"
     10
     11#include "Parameters/Validators/Ops_Validator.hpp"
     12#include "Parameters/Validators/Specific/RealSpaceMatrixSymmetricValidator.hpp"
     13#include "Parameters/Validators/Specific/RealSpaceMatrixInvertibleValidator.hpp"
    1314
    1415// i.e. there is an integer with variable name Z that can be found in
    1516// ValueStorage by the token "Z" -> first column: int, Z, "Z"
    16 // "undefine" if no parameters are required, use (NODEFAULT) for each (undefined) default value
    17 #define paramtypes (Box)
     17// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
     18#define paramtypes (RealSpaceMatrix)
    1819#define paramtokens ("center-in-box")
    1920#define paramdescriptions ("symmetric matrix of new domain")
    2021#undef paramdefaults
    2122#define paramreferences (cell_size)
     23#define paramvalids \
     24(RealSpaceMatrixSymmetricValidator() && RealSpaceMatrixInvertibleValidator())
    2225
    2326#define statetypes (std::string)(std::vector< boost::shared_ptr<Vector> >)
Note: See TracChangeset for help on using the changeset viewer.