From: Daniel Arndt Date: Sat, 21 Dec 2019 15:31:21 +0000 (-0500) Subject: Avoid warnings in tests X-Git-Tag: v9.2.0-rc1~771^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9185%2Fhead;p=dealii.git Avoid warnings in tests --- 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);