From: Wolfgang Bangerth Date: Mon, 30 Sep 2013 13:36:31 +0000 (+0000) Subject: Move declaration of std::vector out of a loop. X-Git-Tag: v8.1.0~678 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a80964e4b2f566f14e10ca7108cfc03be97a7a65;p=dealii.git Move declaration of std::vector out of a loop. git-svn-id: https://svn.dealii.org/trunk@31032 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-42/step-42.cc b/deal.II/examples/step-42/step-42.cc index 786b83d3cb..4eccba90eb 100644 --- a/deal.II/examples/step-42/step-42.cc +++ b/deal.II/examples/step-42/step-42.cc @@ -1373,6 +1373,8 @@ namespace Step42 const unsigned int dofs_per_face = fe.dofs_per_face; const unsigned int n_face_q_points = face_quadrature.size(); + std::vector dof_indices(dofs_per_face); + // pcout<< "dofs_per_face = " << dofs_per_face // << "n_face_q_points = " << n_face_q_points // <face(face)->boundary_indicator() == 1) { fe_values_face.reinit(cell, face); - std::vector dof_indices(dofs_per_face); cell->face(face)->get_dof_indices(dof_indices); for (unsigned int q_point = 0; q_point < n_face_q_points;