From: bangerth Date: Tue, 22 May 2012 11:25:43 +0000 (+0000) Subject: Do not just yet use C++11 features. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=610d5d7fb17f74b8f43c8c83c66b22d5fd7e050f;p=dealii-svn.git Do not just yet use C++11 features. git-svn-id: https://svn.dealii.org/trunk@25537 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/dofs/dof_tools.cc b/deal.II/source/dofs/dof_tools.cc index ced4db6d8e..0e3115daa7 100644 --- a/deal.II/source/dofs/dof_tools.cc +++ b/deal.II/source/dofs/dof_tools.cc @@ -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::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); + } }