]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid warnings in tests 9185/head
authorDaniel Arndt <arndtd@ornl.gov>
Sat, 21 Dec 2019 15:31:21 +0000 (10:31 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Sat, 21 Dec 2019 15:31:21 +0000 (10:31 -0500)
source/base/tensor_function_parser.cc
tests/hp/p_adaptivity_flags.cc

index df16de3589ebca54c2878b1cf98d59964ebe4cce..eb4cb8c13c2831cc479e380d1cd983aaa383a3f8 100644 (file)
@@ -385,8 +385,8 @@ TensorFunctionParser<rank, dim, Number>::value(const Point<dim> &) const
 template <int rank, int dim, typename Number>
 void
 TensorFunctionParser<rank, dim, Number>::value_list(
-  const std::vector<Point<dim>> &         p,
-  std::vector<Tensor<rank, dim, Number>> &values) const
+  const std::vector<Point<dim>> &,
+  std::vector<Tensor<rank, dim, Number>> &) const
 {
   Assert(false, ExcNeedsFunctionparser());
 }
index 0438bc7d7601cab398e9e99145f1ab85ca0edff4..8e14db60e66eae87151127a88c35039753411784 100644 (file)
@@ -107,8 +107,8 @@ test()
 
   const unsigned int n_active = tria.n_active_cells();
   std::vector<bool>  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);
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.