aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/data.hh
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetLib/src/data.hh')
-rw-r--r--Carpet/CarpetLib/src/data.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/data.hh b/Carpet/CarpetLib/src/data.hh
index 39d7517c9..fa11e2852 100644
--- a/Carpet/CarpetLib/src/data.hh
+++ b/Carpet/CarpetLib/src/data.hh
@@ -96,6 +96,11 @@ private:
T dummy;
return dist::c_datatype (dummy);
}
+ // size of the C datatype
+ virtual size_t c_datatype_size () const
+ {
+ return sizeof (T);
+ }
// Data manipulators