From 60ee6bb60b11bbfbccf56f335c9c6213e6daa79d Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Thu, 5 Dec 2002 05:36:32 +0000 Subject: "" svn path=/trunk/; revision=278 --- externals/grill/vasp/source/main.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'externals/grill/vasp/source/main.h') 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 #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; }; -- cgit v1.2.1