aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vasp/source/obj_sync.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/vasp/source/obj_sync.cpp')
-rw-r--r--externals/grill/vasp/source/obj_sync.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/externals/grill/vasp/source/obj_sync.cpp b/externals/grill/vasp/source/obj_sync.cpp
index 9d6e3610..a8726328 100644
--- a/externals/grill/vasp/source/obj_sync.cpp
+++ b/externals/grill/vasp/source/obj_sync.cpp
@@ -31,7 +31,7 @@ WARRANTIES, see the file, "license.txt," in this distribution.
class vasp_sync:
public vasp_op
{
- FLEXT_HEADER(vasp_sync,vasp_op)
+ FLEXT_HEADER_S(vasp_sync,vasp_op,Setup)
public:
vasp_sync(I argc,t_atom *argv):
@@ -52,12 +52,19 @@ public:
AddInAnything(cnt);
AddOutAnything(cnt);
+ }
- FLEXT_ADDMETHOD_(0,"reset",m_reset);
-
+ static V Setup(t_class *c)
+ {
+ FLEXT_CADDMETHOD_(c,0,"reset",m_reset);
}
- virtual BL Init() { BL ret = vasp_op::Init(); m_reset(); return ret; }
+ virtual BL Init()
+ {
+ BL ret = vasp_op::Init();
+ m_reset();
+ return ret;
+ }
~vasp_sync()
{