diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-05-26 17:07:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-05-26 17:07:00 +0000 |
commit | 4b1bbf6c2a30807847cf782de1091fbf9940d1de (patch) | |
tree | 64e205260a8bb658ec44483340c550ee2632e511 /Carpet/CarpetLib/src/data.hh | |
parent | e8c774853531042cef9bc870a576b6166f1c15a5 (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/data.hh')
-rw-r--r-- | Carpet/CarpetLib/src/data.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/data.hh b/Carpet/CarpetLib/src/data.hh index 1cb7cdb25..39d7517c9 100644 --- a/Carpet/CarpetLib/src/data.hh +++ b/Carpet/CarpetLib/src/data.hh @@ -69,6 +69,7 @@ public: virtual void allocate (const ibbox& extent, const int proc, void* const memptr = NULL); virtual void free (); + virtual size_t allocsize (const ibbox& extent, const int proc) const; public: |