aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/gdata.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2009-09-21 11:34:34 -0500
committerBarry Wardell <barry.wardell@gmail.com>2011-12-14 16:45:09 +0000
commitc085bd77e10269a141fa00e27a92e36697589b96 (patch)
treefb65a95a0d8b427cb57767c0af1e5a670249cb05 /Carpet/CarpetLib/src/gdata.hh
parent0e7806cba5f78ac0b19bb93df919e84e95c1465b (diff)
CarpetLib: Implement padding for grid variables
Ignore-this: 1a389f0dd3f40a0c0edb3fdabd6e7d40 Padding grid variables means that e.g. a component of size 32x32x32 is allocated as 33x33x33 instead, but only 32x32x32 of this storage is used. This can improve cache performance considerably. This requires corresponding changes to the cGH entries.
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 4b62cf564..5836f8f4e 100644
--- a/Carpet/CarpetLib/src/gdata.hh
+++ b/Carpet/CarpetLib/src/gdata.hh
@@ -78,6 +78,7 @@ public:
void* const memptr = NULL, size_t const memsize = 0) = 0;
virtual void free () = 0;
virtual size_t allocsize (const ibbox& extent, const int proc) const = 0;
+ static ivect allocated_memory_shape (ibbox const& extent);
// Accessors
bool has_storage () const {