source: src/Actions/MoleculeAction/BoundInBoxAction.def@ 25d9d9

Fix_BoundInBox_CenterInBox_MoleculeActions
Last change on this file since 25d9d9 was 25d9d9, checked in by Frederik Heber <heber@…>, 10 years ago

FIX: CenterInBox and BoundInBox are actions acting on molecules, not world.

  • just stumbled over this when realizing that center-in-box does not center all selected atoms within the box but each of the currently present molecules individually.
  • this is also changed to act only on selected molecules.
  • TEST: extended regression test to only test centering and bounding of some molecules (and not only all).
  • TESTFIX: needed to change regression tests on all molecules to prepend action with select-all-molecules.
  • Needed to renamed python action in boxmaker.py.in.
  • DOCU: Corrected description in userguide.
  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 * BoundInBoxAction.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
9#include <boost/shared_ptr.hpp>
10#include "LinearAlgebra/Vector.hpp"
11
12
13#include "Parameters/Validators/DummyValidator.hpp"
14
15// i.e. there is an integer with variable name Z that can be found in
16// ValueStorage by the token "Z" -> first column: int, Z, "Z"
17// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
18#undef paramtypes
19#undef paramtokens
20#undef paramdescriptions
21#undef paramdefaults
22#undef paramreferences
23#undef paramvalids
24
25#define statetypes (std::vector< boost::shared_ptr<Vector> >)
26#define statereferences (OldPositions)
27
28// some defines for all the names, you may use ACTION, STATE and PARAMS
29#define CATEGORY Molecule
30#define MENUNAME "molecule"
31#define MENUPOSITION 2
32#define ACTIONNAME BoundInBox
33#define TOKEN "bound-in-box"
34
35
36// finally the information stored in the ActionTrait specialization
37#define DESCRIPTION "bound each selected molecule in the domain"
38#undef SHORTFORM
Note: See TracBrowser for help on using the repository browser.