aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/mem.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2012-04-30 15:40:22 -0400
committerBarry Wardell <barry.wardell@gmail.com>2012-09-11 18:23:17 +0100
commit87cbe70263d6ba8bdc25e77161b382ed266ad311 (patch)
tree618cfaa501b94b9c5bed69129d6a26bc5bcb806c /Carpet/CarpetLib/src/mem.cc
parentb6e291b56d6b711579971e978802d3f7ff51866e (diff)
CarpetLib: Remove warnings for non-aligned grid variables
Diffstat (limited to 'Carpet/CarpetLib/src/mem.cc')
-rw-r--r--Carpet/CarpetLib/src/mem.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/Carpet/CarpetLib/src/mem.cc b/Carpet/CarpetLib/src/mem.cc
index 23c0e574b..27f86e951 100644
--- a/Carpet/CarpetLib/src/mem.cc
+++ b/Carpet/CarpetLib/src/mem.cc
@@ -74,16 +74,6 @@ mem (size_t const vectorlength, size_t const nelems,
double(total_allocated_bytes/MEGA),
int(total_allocated_objects));
}
- size_t const expected_pagesize = 4096;
- size_t const min_alignment = 64;
- if (nbytes >= expected_pagesize and (size_t)storage_ % min_alignment != 0) {
- T Tdummy;
- CCTK_VWarn (CCTK_WARN_ALERT, __LINE__, __FILE__, CCTK_THORNSTRING,
- "Allocated %.0f bytes (%.3f MB) of memory for type %s, but the result is not aligned to %d bytes",
- double(nbytes), double(nbytes/MEGA),
- typestring(Tdummy),
- int(min_alignment));
- }
total_allocated_bytes += nbytes;
max_allocated_bytes = max (max_allocated_bytes, total_allocated_bytes);
if (poison_new_memory) {