From 09c72dc3927db59440c4b1e4979304907b155ae0 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 21 Dec 2019 10:31:21 -0500 Subject: [PATCH] Avoid warnings in tests --- source/base/tensor_function_parser.cc | 4 ++-- tests/hp/p_adaptivity_flags.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/base/tensor_function_parser.cc b/source/base/tensor_function_parser.cc index df16de3589..eb4cb8c13c 100644 --- a/source/base/tensor_function_parser.cc +++ b/source/base/tensor_function_parser.cc @@ -385,8 +385,8 @@ TensorFunctionParser::value(const Point &) const template void TensorFunctionParser::value_list( - const std::vector> & p, - std::vector> &values) const + const std::vector> &, + std::vector> &) const { Assert(false, ExcNeedsFunctionparser()); } diff --git a/tests/hp/p_adaptivity_flags.cc b/tests/hp/p_adaptivity_flags.cc index 0438bc7d76..8e14db60e6 100644 --- a/tests/hp/p_adaptivity_flags.cc +++ b/tests/hp/p_adaptivity_flags.cc @@ -107,8 +107,8 @@ test() const unsigned int n_active = tria.n_active_cells(); std::vector p_flags(n_active, false); - std::fill(p_flags.begin(), p_flags.begin() + .25 * n_active, true); - std::fill(p_flags.end() - .25 * n_active, p_flags.end(), true); + std::fill(p_flags.begin(), p_flags.begin() + n_active / 4, true); + std::fill(p_flags.end() - n_active / 4, p_flags.end(), true); hp::Refinement::p_adaptivity_from_flags(dh, p_flags); -- 2.39.5