diff options
author | Roland Haas <rhaas@tapir.caltech.edu> | 2013-10-15 14:26:20 -0700 |
---|---|---|
committer | Roland Haas <rhaas@tapir.caltech.edu> | 2013-10-31 19:05:45 -0700 |
commit | 7c18b11f9a014731b63415bfde936c7f9d9be999 (patch) | |
tree | b1d17a05291ceef00a9e2f7fc8119303f43f8deb | |
parent | 5de40cab297db3f809e1ee97f7c3d32bf736df0d (diff) |
CarpetLib: code layout changes when using map for allgfs
-rw-r--r-- | Carpet/CarpetLib/src/dh.cc | 4 | ||||
-rw-r--r-- | 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<int,ggf*> (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<int,ggf*> gfs; // all grid functions |