aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Hawke <ih@maths.soton.ac.uk>2005-02-09 17:31:00 +0000
committerIan Hawke <ih@maths.soton.ac.uk>2005-02-09 17:31:00 +0000
commit4a0a824f958689ad16e7d8bd07e6e3a9195143ea (patch)
tree952d296d0a46fb6a6f21038dc1b650ab8cc16c5c
parent06abca2346dae4d881a7733230579a7efb9a4587 (diff)
Reverse iterator order
Reverse the order that variables are destroyed when refinement levels are removed. This ensures that vector GFs are treated correctly. darcs-hash:20050209173129-58c7f-c2507b49252fe45782dd06803201ef1cff74f889.gz
-rw-r--r--Carpet/CarpetLib/src/dh.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/CarpetLib/src/dh.cc b/Carpet/CarpetLib/src/dh.cc
index e13d1ad6b..2078b88a3 100644
--- a/Carpet/CarpetLib/src/dh.cc
+++ b/Carpet/CarpetLib/src/dh.cc
@@ -540,7 +540,7 @@ void dh::calculate_bases ()
void dh::save_time (bool do_prolongate)
{
- for (list<ggf*>::iterator f=gfs.begin(); f!=gfs.end(); ++f) {
+ for (list<ggf*>::reverse_iterator f=gfs.rbegin(); f!=gfs.rend(); ++f) {
(*f)->recompose_crop ();
}
for (int rl=0; rl<h.reflevels(); ++rl) {