diff options
Diffstat (limited to 'Carpet/CarpetLib/src/gdata.hh')
-rw-r--r-- | Carpet/CarpetLib/src/gdata.hh | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Carpet/CarpetLib/src/gdata.hh b/Carpet/CarpetLib/src/gdata.hh index b97a3e010..106c6ae45 100644 --- a/Carpet/CarpetLib/src/gdata.hh +++ b/Carpet/CarpetLib/src/gdata.hh @@ -28,6 +28,8 @@ class gdata { protected: // should be readonly // Fields + void * _storage; // A copy of the storage pointer + const int varindex; // Cactus variable index, or -1 centering cent; @@ -99,9 +101,20 @@ public: return _has_storage; } - virtual const void* storage () const = 0; + void const * + storage () + const + { + assert (_has_storage); + return _storage; + } - virtual void* storage () = 0; + void * + storage () + { + assert (_has_storage); + return _storage; + } int size () const { assert (_has_storage); |