diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-02-04 17:58:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-02-04 17:58:00 +0000 |
commit | 8f28ee78d87631b019da15123d77a0513d436008 (patch) | |
tree | cdcf06a1b6c260f92a5d31e66cc8d3010c04bcfd /Carpet/CarpetLib/src/data.hh | |
parent | d1a89bfd53ceb0ca43721749e5f4da91080078aa (diff) |
CarpetLib: Add _storage field to gdata class
Add a field "void * _storage" to the gdata class to speed up its
storage() member function.
darcs-hash:20070204175843-dae7b-644ade82e1432b82384baf64f55aeb2482032fdf.gz
Diffstat (limited to 'Carpet/CarpetLib/src/data.hh')
-rw-r--r-- | Carpet/CarpetLib/src/data.hh | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Carpet/CarpetLib/src/data.hh b/Carpet/CarpetLib/src/data.hh index 415345c06..c0f2a68fc 100644 --- a/Carpet/CarpetLib/src/data.hh +++ b/Carpet/CarpetLib/src/data.hh @@ -82,20 +82,6 @@ private: const int newproc, void* const memptr = NULL); public: - - // Accessors - virtual const void* storage () const - { - assert (_has_storage); - if (! _memory) return 0; - return _memory->storage(vectorindex); - } - - virtual void* storage () { - assert (_has_storage); - if (! _memory) return 0; - return _memory->storage(vectorindex); - } // Data accessors const T& operator[] (const ivect& index) const |