]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Do not just yet use C++11 features.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 22 May 2012 11:25:43 +0000 (11:25 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 22 May 2012 11:25:43 +0000 (11:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@25537 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/dofs/dof_tools.cc

index ced4db6d8ea661f09161a7f00533076fc3bed537..0e3115daa7ac261f9d21f6d82048a2ddda6b22a6 100644 (file)
@@ -3422,23 +3422,25 @@ namespace DoFTools
                                    // And apply the low level
                                    // make_periodicity_constraints function
                                    // to every matching pair:
-    for (auto it = matched_cells.begin(); it != matched_cells.end(); ++it) {
-      typedef typename DH::face_iterator FaceIterator;
-      FaceIterator face_1 = it->first->face(2*direction);
-      FaceIterator face_2 = it->second->face(2*direction+1);
-
-      Assert(face_1->at_boundary() && face_2->at_boundary(),
-             ExcInternalError());
-
-      Assert (face_1->boundary_indicator() == boundary_component &&
-              face_2->boundary_indicator() == boundary_component,
-              ExcInternalError());
-
-      make_periodicity_constraints(face_1,
-                                   face_2,
-                                   constraint_matrix,
-                                   component_mask);
-    }
+    for (typename std::map<CellIterator, CellIterator>::iterator it = matched_cells.begin();
+        it != matched_cells.end(); ++it)
+      {
+       typedef typename DH::face_iterator FaceIterator;
+       FaceIterator face_1 = it->first->face(2*direction);
+       FaceIterator face_2 = it->second->face(2*direction+1);
+
+       Assert(face_1->at_boundary() && face_2->at_boundary(),
+              ExcInternalError());
+
+       Assert (face_1->boundary_indicator() == boundary_component &&
+               face_2->boundary_indicator() == boundary_component,
+               ExcInternalError());
+
+       make_periodicity_constraints(face_1,
+                                    face_2,
+                                    constraint_matrix,
+                                    component_mask);
+      }
   }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.