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/dh.hh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Carpet/CarpetLib/src/dh.hh') diff --git a/Carpet/CarpetLib/src/dh.hh b/Carpet/CarpetLib/src/dh.hh index b558b013f..55b75218c 100644 --- a/Carpet/CarpetLib/src/dh.hh +++ b/Carpet/CarpetLib/src/dh.hh @@ -5,6 +5,7 @@ #include #include #include +#include #include #include @@ -248,7 +249,12 @@ public: // should be readonly level_mboxes level_boxes; // grid hierarchy [ml][rl] fast_mboxes fast_boxes; // grid hierarchy [ml][rl][p] - set gfs; // all grid functions +private: + + // this needs to be sorted by varindex so that when iteration through the + // container in order with a forward iterator, vector leaders are processed + // first + map gfs; // all grid functions public: -- cgit v1.2.3