diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2011-02-05 19:28:29 -0500 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 18:25:59 +0000 |
commit | 26093c56ff1577a37ae8137ef8f8a1b6bb7ed671 (patch) | |
tree | 10685143b432dc563e7ba8da0b968b0a32fa1835 /Carpet/CarpetLib/src/mem.hh | |
parent | 6fe0b030331413db6a403dfd7b66c0855ea202ba (diff) |
CarpetLib: Introduce gdata::allocated_memory_shape
Introduce a function gdata::allocated_memory_shape that determines from a given grid size how many grid points should be allocated. This allows adding padding to grid sizes, e.g. to improve cache performance.
Use this function when checking grid sizes.
Diffstat (limited to 'Carpet/CarpetLib/src/mem.hh')
-rw-r--r-- | Carpet/CarpetLib/src/mem.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/CarpetLib/src/mem.hh b/Carpet/CarpetLib/src/mem.hh index 5fdc70018..04748f436 100644 --- a/Carpet/CarpetLib/src/mem.hh +++ b/Carpet/CarpetLib/src/mem.hh @@ -33,7 +33,7 @@ public: template<typename T> -class mem: gmem +class mem: public gmem { T * storage_; size_t nelems_; |