aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/gdata.hh
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetLib/src/gdata.hh')
-rw-r--r--Carpet/CarpetLib/src/gdata.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/gdata.hh b/Carpet/CarpetLib/src/gdata.hh
index 6d8cd2fef..76c1ab6fe 100644
--- a/Carpet/CarpetLib/src/gdata.hh
+++ b/Carpet/CarpetLib/src/gdata.hh
@@ -123,6 +123,10 @@ public:
return _extent;
}
+ int elementsize () const {
+ return c_datatype_size();
+ }
+
// Data accessors
int offset (const ivect& index) const {
assert (_has_storage);
@@ -136,6 +140,7 @@ private:
// Datatype accessors
// maps the C datatype of a data class object to a 0-based index
virtual unsigned int c_datatype () const = 0;
+ virtual size_t c_datatype_size () const = 0;
// Data manipulators