From 209c4b1007bb04b3a1be33a2875a27ecb29e9270 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sun, 27 Aug 2017 17:47:47 -0400 Subject: [PATCH] fix tests/meshworker/step-11-mesh_loop It doesn't make sense to have the face loop inside the boundary_worker. Doh. --- tests/meshworker/step-11-mesh_loop.cc | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/tests/meshworker/step-11-mesh_loop.cc b/tests/meshworker/step-11-mesh_loop.cc index 0a4dd4e47a..cc871f9d8a 100644 --- a/tests/meshworker/step-11-mesh_loop.cc +++ b/tests/meshworker/step-11-mesh_loop.cc @@ -257,27 +257,23 @@ namespace Step11 } }; - auto boundary_worker = [] (const Iterator &cell, const unsigned int &f, ScratchData &scratch_data, CopyData ©_data) + auto boundary_worker = [] (const Iterator &cell, const unsigned int &face_no, ScratchData &scratch_data, CopyData ©_data) { const unsigned int dofs_per_cell = scratch_data.fe_values.get_fe().dofs_per_cell; const unsigned int n_face_q_points = scratch_data.fe_face_values.get_quadrature().size(); - std::vector face_boundary_values (n_face_q_points); + std::vector face_boundary_values (n_face_q_points); ConstantFunction boundary_values (1.0); - for (unsigned int face=0; face::faces_per_cell; ++face) - if (cell->face(face)->at_boundary()) - { - scratch_data.fe_face_values.reinit (cell, face); - boundary_values.value_list (scratch_data.fe_face_values.get_quadrature_points(), - face_boundary_values); - - for (unsigned int q_point=0; q_point