aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vasp/source/main.h
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/main.h
parentbbd9d289d152f6ef085dec680f0b1611c29f0e32 (diff)
""
svn path=/trunk/; revision=278
Diffstat (limited to 'externals/grill/vasp/source/main.h')
-rw-r--r--externals/grill/vasp/source/main.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/externals/grill/vasp/source/main.h b/externals/grill/vasp/source/main.h
index 0fad36d8..f8680dab 100644
--- a/externals/grill/vasp/source/main.h
+++ b/externals/grill/vasp/source/main.h
@@ -11,6 +11,9 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#ifndef __VASP_H
#define __VASP_H
+// enable attributes
+#define FLEXT_ATTRIBUTES 1
+
#include <flext.h>
#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 401)
@@ -52,7 +55,7 @@ class vector;
typedef vector VX;
#endif
-#ifdef PD
+#if FLEXT_SYS == FLEXT_SYS_PD
// buffers are never interleaved - special optimizations may occur
// attention: possibly obsolete when immediate file access is implemented
#define VASP_CHN1
@@ -76,6 +79,9 @@ public:
I Dim() const { return dim; }
F *Data() { return data; }
const F *Data() const { return data; }
+
+ F operator [](I ix) const { return data[ix]; }
+ F &operator [](I ix) { return data[ix]; }
protected:
I dim; F *data;
};