aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/gdata.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2007-05-26 17:07:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2007-05-26 17:07:00 +0000
commit4b1bbf6c2a30807847cf782de1091fbf9940d1de (patch)
tree64e205260a8bb658ec44483340c550ee2632e511 /Carpet/CarpetLib/src/gdata.hh
parente8c774853531042cef9bc870a576b6166f1c15a5 (diff)
CarpetLib: Add member gdata::allocsize
Add a member gdata::allocsize which calculates the amount of memory that a data object requires. darcs-hash:20070526170719-dae7b-622c8d34ced2a5066fbaaf56e9d9b39efeea9022.gz
Diffstat (limited to 'Carpet/CarpetLib/src/gdata.hh')
-rw-r--r--Carpet/CarpetLib/src/gdata.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/gdata.hh b/Carpet/CarpetLib/src/gdata.hh
index 2cdf7fbcd..6d8cd2fef 100644
--- a/Carpet/CarpetLib/src/gdata.hh
+++ b/Carpet/CarpetLib/src/gdata.hh
@@ -76,6 +76,7 @@ public:
virtual void allocate (const ibbox& extent, const int proc,
void* const mem=0) = 0;
virtual void free () = 0;
+ virtual size_t allocsize (const ibbox& extent, const int proc) const = 0;
// Accessors
bool has_storage () const {