From: Jean-Paul Pelteret Date: Tue, 5 May 2020 21:21:30 +0000 (+0200) Subject: Fix meshworker tests X-Git-Tag: v9.2.0-rc1~123^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9997%2Fhead;p=dealii.git Fix meshworker tests --- diff --git a/tests/meshworker/mesh_loop_04.cc b/tests/meshworker/mesh_loop_04.cc index 89e4fbf492..6f0c713e73 100644 --- a/tests/meshworker/mesh_loop_04.cc +++ b/tests/meshworker/mesh_loop_04.cc @@ -72,7 +72,6 @@ test() auto cell_worker = [](const Iterator &cell, ScratchData &s, CopyData &c) { const auto &fev = s.reinit(cell); const auto &JxW = s.get_JxW_values(); - c = 0; for (auto w : JxW) c.vectors[0][0] += w; }; diff --git a/tests/meshworker/mesh_loop_05.cc b/tests/meshworker/mesh_loop_05.cc index ede120e0a4..3d4ed98a43 100644 --- a/tests/meshworker/mesh_loop_05.cc +++ b/tests/meshworker/mesh_loop_05.cc @@ -77,7 +77,6 @@ test() auto cell_worker = [](const Iterator &cell, ScratchData &s, CopyData &c) { const auto &fev = s.reinit(cell); const auto &JxW = s.get_JxW_values(); - c = 0; for (auto w : JxW) c.vectors[0][0] += w; }; diff --git a/tests/meshworker/mesh_loop_06.cc b/tests/meshworker/mesh_loop_06.cc index a0e98a9a16..df07e5e92e 100644 --- a/tests/meshworker/mesh_loop_06.cc +++ b/tests/meshworker/mesh_loop_06.cc @@ -78,7 +78,6 @@ test(const types::material_id test_id) auto cell_worker = [](const Iterator &cell, ScratchData &s, CopyData &c) { const auto &fev = s.reinit(cell); const auto &JxW = s.get_JxW_values(); - c = 0; for (auto w : JxW) c.vectors[0][0] += w; }; diff --git a/tests/meshworker/mesh_loop_07.cc b/tests/meshworker/mesh_loop_07.cc index 0b3b71cf85..fb0fbc17bd 100644 --- a/tests/meshworker/mesh_loop_07.cc +++ b/tests/meshworker/mesh_loop_07.cc @@ -62,7 +62,6 @@ run() ScratchData & scratch_data, CopyData & copy_data) { const auto &fe_values = scratch_data.reinit(cell); - copy_data = 0; for (unsigned int q_point = 0; q_point < fe_values.n_quadrature_points; ++q_point) diff --git a/tests/meshworker/scratch_data_01.cc b/tests/meshworker/scratch_data_01.cc index c86406a8ce..07e04e6b3b 100644 --- a/tests/meshworker/scratch_data_01.cc +++ b/tests/meshworker/scratch_data_01.cc @@ -72,7 +72,6 @@ test() auto cell_worker = [](const Iterator &cell, ScratchData &s, CopyData &c) { const auto &fev = s.reinit(cell); const auto &JxW = s.get_JxW_values(); - c = 0; for (auto w : JxW) c.vectors[0][0] += w; }; diff --git a/tests/meshworker/scratch_data_02.cc b/tests/meshworker/scratch_data_02.cc index 562aafe78a..31685bffd1 100644 --- a/tests/meshworker/scratch_data_02.cc +++ b/tests/meshworker/scratch_data_02.cc @@ -116,8 +116,6 @@ test() const auto &JxW = s.get_JxW_values(); const auto &p = s.get_quadrature_points(); - c = 0; - c.local_dof_indices[0] = s.get_local_dof_indices(); for (unsigned int q = 0; q < p.size(); ++q) diff --git a/tests/meshworker/scratch_data_03.cc b/tests/meshworker/scratch_data_03.cc index d12abd3397..b0c5822c5d 100644 --- a/tests/meshworker/scratch_data_03.cc +++ b/tests/meshworker/scratch_data_03.cc @@ -116,8 +116,6 @@ test() const auto &JxW = s.get_JxW_values(); const auto &p = s.get_quadrature_points(); - c = 0; - c.local_dof_indices[0] = s.get_local_dof_indices(); for (unsigned int q = 0; q < p.size(); ++q) diff --git a/tests/meshworker/scratch_data_05.cc b/tests/meshworker/scratch_data_05.cc index 98f5fd03ed..330e16518a 100644 --- a/tests/meshworker/scratch_data_05.cc +++ b/tests/meshworker/scratch_data_05.cc @@ -130,8 +130,6 @@ test() const auto &u = s.get_values("solution", scalar, dummy); const auto &grad_u = s.get_gradients("solution", scalar, dummy); - c = 0; - c.local_dof_indices[0] = s.get_local_dof_indices(); for (unsigned int i = 0; i < fev.dofs_per_cell; ++i) diff --git a/tests/meshworker/scratch_data_06.cc b/tests/meshworker/scratch_data_06.cc index aa23f4154e..bbba1f986c 100644 --- a/tests/meshworker/scratch_data_06.cc +++ b/tests/meshworker/scratch_data_06.cc @@ -130,8 +130,6 @@ test() const auto &u = s.get_values("solution", scalar, energy); const auto &grad_u = s.get_gradients("solution", scalar, energy); - c = 0; - c.local_dof_indices[0] = s.get_local_dof_indices(); for (unsigned int q = 0; q < p.size(); ++q) diff --git a/tests/meshworker/scratch_data_07.cc b/tests/meshworker/scratch_data_07.cc index c83c5ef587..05bdd970e7 100644 --- a/tests/meshworker/scratch_data_07.cc +++ b/tests/meshworker/scratch_data_07.cc @@ -132,8 +132,6 @@ test() const auto &u = s.get_values("solution", scalar, energy); const auto &grad_u = s.get_gradients("solution", scalar, energy); - c = 0; - c.local_dof_indices[0] = s.get_local_dof_indices(); for (unsigned int q = 0; q < p.size(); ++q)