From: Wolfgang Bangerth Date: Mon, 30 Sep 2013 13:35:17 +0000 (+0000) Subject: Move declaration of std::vector out of loop. X-Git-Tag: v8.1.0~570^2~153 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03fb1b6809cdc628dc7897f3bd0bcce48334b8e6;p=dealii.git Move declaration of std::vector out of loop. git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31031 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;