aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vasp/source/obj_peaks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/vasp/source/obj_peaks.cpp')
-rw-r--r--externals/grill/vasp/source/obj_peaks.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/externals/grill/vasp/source/obj_peaks.cpp b/externals/grill/vasp/source/obj_peaks.cpp
index 1c1a218d..bade1ff1 100644
--- a/externals/grill/vasp/source/obj_peaks.cpp
+++ b/externals/grill/vasp/source/obj_peaks.cpp
@@ -8,6 +8,7 @@ WARRANTIES, see the file, "license.txt," in this distribution.
*/
+#include "main.h"
#include "classes.h"
#include "util.h"
#include <math.h>
@@ -44,9 +45,9 @@ public:
AddInAnything();
AddInInt();
AddOutAnything(2);
- SetupInOut();
FLEXT_ADDMETHOD(1,m_peaks);
+ FLEXT_ADDATTR_VAR("peaks",peaks,m_peaks);
}
V m_peaks(I n) { peaks = n; }
@@ -104,6 +105,8 @@ protected:
private:
FLEXT_CALLBACK_I(m_peaks);
+ FLEXT_CALLSET_I(m_peaks);
+ FLEXT_ATTRGET_I(peaks);
};
FLEXT_LIB_V("vasp, vasp.peaks?",vasp_qpeaks)