From 8237792551e9f5f9ca95e98d78a709b5722ed25f Mon Sep 17 00:00:00 2001 From: Roland Haas Date: Tue, 8 Oct 2013 17:31:22 -0700 Subject: CarpetLib: use map instead of set for dh::gfs some routines assume that elements in gfs are sorted by variable index when traversing the container (eg recompose_allocate does) --- Carpet/CarpetLib/src/defs.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Carpet/CarpetLib/src/defs.hh') diff --git a/Carpet/CarpetLib/src/defs.hh b/Carpet/CarpetLib/src/defs.hh index 747761cd7..8f8c13345 100644 --- a/Carpet/CarpetLib/src/defs.hh +++ b/Carpet/CarpetLib/src/defs.hh @@ -326,6 +326,8 @@ template inline size_t memoryof (typename list::const_iterator const template size_t memoryof (list const & c) CCTK_ATTRIBUTE_PURE; template size_t memoryof (set const & c) CCTK_ATTRIBUTE_PURE; +template + size_t memoryof (map const & c) CCTK_ATTRIBUTE_PURE; template size_t memoryof (stack const & c) CCTK_ATTRIBUTE_PURE; template size_t memoryof (vector const & c) CCTK_ATTRIBUTE_PURE; -- cgit v1.2.3