From 7c18b11f9a014731b63415bfde936c7f9d9be999 Mon Sep 17 00:00:00 2001 From: Roland Haas Date: Tue, 15 Oct 2013 14:26:20 -0700 Subject: CarpetLib: code layout changes when using map for allgfs --- Carpet/CarpetLib/src/dh.cc | 4 ++-- Carpet/CarpetLib/src/dh.hh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Carpet/CarpetLib/src/dh.cc b/Carpet/CarpetLib/src/dh.cc index 83a0b0af4..b82337685 100644 --- a/Carpet/CarpetLib/src/dh.cc +++ b/Carpet/CarpetLib/src/dh.cc @@ -2254,7 +2254,7 @@ insert (ggf * const f) assert (f); assert (f->varindex >= 0); assert (f->varindex < CCTK_NumVars()); - const bool inserted = + bool const inserted = gfs.insert (pair (f->varindex, f)).second; assert (inserted); } @@ -2267,7 +2267,7 @@ erase (ggf * const f) assert (f); assert (f->varindex >= 0); assert (f->varindex < CCTK_NumVars()); - const size_t erased = gfs.erase (f->varindex); + size_t const erased = gfs.erase (f->varindex); assert (erased == 1); } diff --git a/Carpet/CarpetLib/src/dh.hh b/Carpet/CarpetLib/src/dh.hh index 55b75218c..7b59edeb5 100644 --- a/Carpet/CarpetLib/src/dh.hh +++ b/Carpet/CarpetLib/src/dh.hh @@ -251,7 +251,7 @@ public: // should be readonly private: - // this needs to be sorted by varindex so that when iteration through the + // this needs to be sorted by varindex so that when iterating through the // container in order with a forward iterator, vector leaders are processed // first map gfs; // all grid functions -- cgit v1.2.3