From c183ea2454f97a12824944ad46f2fed8cbde312b Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Sat, 21 Mar 2020 17:39:28 +0100 Subject: [PATCH] Remove a few VectorizedArray::n_array_elements in examples --- examples/step-37/step-37.cc | 5 ++--- examples/step-48/step-48.cc | 5 ++--- examples/step-59/step-59.cc | 12 +++--------- 3 files changed, 7 insertions(+), 15 deletions(-) diff --git a/examples/step-37/step-37.cc b/examples/step-37/step-37.cc index f1a910d205..0513930861 100644 --- a/examples/step-37/step-37.cc +++ b/examples/step-37/step-37.cc @@ -1152,9 +1152,8 @@ namespace Step37 void LaplaceProblem::run() { { - const unsigned int n_vect_doubles = - VectorizedArray::n_array_elements; - const unsigned int n_vect_bits = 8 * sizeof(double) * n_vect_doubles; + const unsigned int n_vect_doubles = VectorizedArray::size(); + const unsigned int n_vect_bits = 8 * sizeof(double) * n_vect_doubles; pcout << "Vectorization over " << n_vect_doubles << " doubles = " << n_vect_bits << " bits (" diff --git a/examples/step-48/step-48.cc b/examples/step-48/step-48.cc index 155d345f01..8c79feb1e5 100644 --- a/examples/step-48/step-48.cc +++ b/examples/step-48/step-48.cc @@ -529,9 +529,8 @@ namespace Step48 << Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD) << std::endl; pcout << "Number of threads on each rank: " << MultithreadInfo::n_threads() << std::endl; - const unsigned int n_vect_doubles = - VectorizedArray::n_array_elements; - const unsigned int n_vect_bits = 8 * sizeof(double) * n_vect_doubles; + const unsigned int n_vect_doubles = VectorizedArray::size(); + const unsigned int n_vect_bits = 8 * sizeof(double) * n_vect_doubles; pcout << "Vectorization over " << n_vect_doubles << " doubles = " << n_vect_bits << " bits (" << Utilities::System::get_current_vectorization_level() diff --git a/examples/step-59/step-59.cc b/examples/step-59/step-59.cc index 9378c1f8cd..692a92bf01 100644 --- a/examples/step-59/step-59.cc +++ b/examples/step-59/step-59.cc @@ -818,9 +818,7 @@ namespace Step59 for (unsigned int d = 0; d < dim; ++d) for (unsigned int e = 0; e < dim; ++e) if (d != e) - for (unsigned int v = 0; - v < VectorizedArray::n_array_elements; - ++v) + for (unsigned int v = 0; v < VectorizedArray::size(); ++v) AssertThrow(inverse_jacobian[d][e][v] == 0., ExcNotImplemented()); @@ -1084,9 +1082,7 @@ namespace Step59 VectorizedArray rhs_val = VectorizedArray(); Point> point_batch = phi.quadrature_point(q); - for (unsigned int v = 0; - v < VectorizedArray::n_array_elements; - ++v) + for (unsigned int v = 0; v < VectorizedArray::size(); ++v) { Point single_point; for (unsigned int d = 0; d < dim; ++d) @@ -1143,9 +1139,7 @@ namespace Step59 Point> point_batch = phi_face.quadrature_point(q); - for (unsigned int v = 0; - v < VectorizedArray::n_array_elements; - ++v) + for (unsigned int v = 0; v < VectorizedArray::size(); ++v) { Point single_point; for (unsigned int d = 0; d < dim; ++d) -- 2.39.5