From: Martin Kronbichler Date: Tue, 23 Jul 2024 17:08:13 +0000 (+0200) Subject: Simplify test case X-Git-Tag: v9.6.0-rc1~10^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17366%2Fhead;p=dealii.git Simplify test case --- diff --git a/tests/multigrid-global-coarsening/multigrid_util.h b/tests/multigrid-global-coarsening/multigrid_util.h index 6f292c07bb..888e088f79 100644 --- a/tests/multigrid-global-coarsening/multigrid_util.h +++ b/tests/multigrid-global-coarsening/multigrid_util.h @@ -206,22 +206,14 @@ public: phi.reinit(cell); for (unsigned int q = 0; q < phi.n_q_points; ++q) { - if constexpr (n_components == 1) + Tensor<1, n_components, VectorizedArray> temp; + for (unsigned int v = 0; v < VectorizedArray::size(); + ++v) { - phi.submit_value(1.0, q); - } - else - { - Tensor<1, n_components, VectorizedArray> temp; - for (unsigned int v = 0; - v < VectorizedArray::size(); - ++v) - { - for (unsigned int i = 0; i < n_components; i++) - temp[i][v] = 1.; - } - phi.submit_value(temp, q); + for (unsigned int i = 0; i < n_components; i++) + temp[i][v] = 1.; } + phi.submit_value(temp, q); } phi.integrate_scatter(EvaluationFlags::values, dst);