aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vasp/source/ops_rearr.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2002-12-05 05:36:32 +0000
committerThomas Grill <xovo@users.sourceforge.net>2002-12-05 05:36:32 +0000
commit60ee6bb60b11bbfbccf56f335c9c6213e6daa79d (patch)
tree99b0c72c60aeba5d1a0489aae9edd16f371d965c /externals/grill/vasp/source/ops_rearr.cpp
parentbbd9d289d152f6ef085dec680f0b1611c29f0e32 (diff)
""
svn path=/trunk/; revision=278
Diffstat (limited to 'externals/grill/vasp/source/ops_rearr.cpp')
-rw-r--r--externals/grill/vasp/source/ops_rearr.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/externals/grill/vasp/source/ops_rearr.cpp b/externals/grill/vasp/source/ops_rearr.cpp
index 2aa69aa2..bee58c56 100644
--- a/externals/grill/vasp/source/ops_rearr.cpp
+++ b/externals/grill/vasp/source/ops_rearr.cpp
@@ -8,6 +8,7 @@ WARRANTIES, see the file, "license.txt," in this distribution.
*/
+#include "main.h"
#include "ops_rearr.h"
#include "oploop.h"
#include "oppermute.h"
@@ -101,11 +102,11 @@ class vasp_shift:
FLEXT_HEADER(vasp_shift,vasp_anyop)
public:
- vasp_shift(I argc,t_atom *argv):
+ vasp_shift(I argc,const t_atom *argv):
vasp_anyop(argc,argv,VASP_ARG_I(0),true),
fill(xsf_zero)
{
- FLEXT_ADDMETHOD_E(0,"fill",m_fill);
+ FLEXT_ADDATTR_VAR1_E("fill",fill);
}
enum xs_fill {
@@ -113,8 +114,6 @@ public:
xsf_none = 0,xsf_zero,xsf_edge
};
- V m_fill(xs_fill f) { fill = f; }
-
virtual Vasp *do_shift(OpParam &p) { return VaspOp::m_shift(p,ref,arg,&dst); }
virtual Vasp *tx_work(const Argument &arg)
@@ -132,7 +131,7 @@ protected:
xs_fill fill;
private:
- FLEXT_CALLBACK_1(m_fill,xs_fill)
+ FLEXT_ATTRVAR_E(fill,xs_fill)
};
FLEXT_LIB_V("vasp, vasp.shift",vasp_shift)
@@ -143,7 +142,7 @@ class vasp_xshift:
FLEXT_HEADER(vasp_xshift,vasp_shift)
public:
- vasp_xshift(I argc,t_atom *argv): vasp_shift(argc,argv) {}
+ vasp_xshift(I argc,const t_atom *argv): vasp_shift(argc,argv) {}
virtual Vasp *do_shift(OpParam &p) { return VaspOp::m_xshift(p,ref,arg,&dst); }