From: Peter Munch Date: Sat, 31 Jul 2021 07:58:45 +0000 (+0200) Subject: Extend test X-Git-Tag: v9.4.0-rc1~1101^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12615%2Fhead;p=dealii.git Extend test --- diff --git a/doc/news/changes/minor/20210731Munch b/doc/news/changes/minor/20210731Munch new file mode 100644 index 0000000000..06a0be9572 --- /dev/null +++ b/doc/news/changes/minor/20210731Munch @@ -0,0 +1,4 @@ +Fixed: Use tolerances consistently in RemotePointEvaluation, +VectorTools::point_values(), and GridTools::distributed_compute_point_locations(). +
+(Peter Munch, Magdalena Schreter, 2021/07/31) diff --git a/tests/remote_point_evaluation/mapping_03.cc b/tests/remote_point_evaluation/mapping_03.cc index 54bcfc811b..3c5baeae2d 100644 --- a/tests/remote_point_evaluation/mapping_03.cc +++ b/tests/remote_point_evaluation/mapping_03.cc @@ -40,7 +40,6 @@ test(const bool enforce_unique_map) { parallel::distributed::Triangulation tria(MPI_COMM_WORLD); GridGenerator::subdivided_hyper_cube(tria, 2); - tria.refine_global(1); FE_Q fe(1); DoFHandler dof_handler(tria); @@ -54,8 +53,9 @@ test(const bool enforce_unique_map) std::vector> evaluation_points; - evaluation_points.emplace_back(0.5, 0.5 + 1e-7); // should be assigned to rank - // 0 for unique mapping + for (int i = 1; i < 15; ++i) + // should be assigned to rank 0 for unique mapping + evaluation_points.emplace_back(0.5, 0.5 + std::pow(10.0, -i)); Utilities::MPI::RemotePointEvaluation eval(1e-6, enforce_unique_map); @@ -74,8 +74,8 @@ test(const bool enforce_unique_map) eval, dof_handler, vec, VectorTools::EvaluationFlags::insert); for (unsigned int i = 0; i < evaluation_points.size(); ++i) - deallog << i << " " << result_avg[i] << " " << result_min[i] << " " - << result_max[i] << " " << result_insert[i] << " " + deallog << "1e-" << (i + 1) << " " << result_avg[i] << " " << result_min[i] + << " " << result_max[i] << " " << result_insert[i] << " " << eval.get_point_ptrs()[i + 1] - eval.get_point_ptrs()[i] << std::endl; } diff --git a/tests/remote_point_evaluation/mapping_03.with_p4est=true.mpirun=2.output b/tests/remote_point_evaluation/mapping_03.with_p4est=true.mpirun=2.output index 9529db7f95..6fc910c6f3 100644 --- a/tests/remote_point_evaluation/mapping_03.with_p4est=true.mpirun=2.output +++ b/tests/remote_point_evaluation/mapping_03.with_p4est=true.mpirun=2.output @@ -1,7 +1,59 @@ -DEAL:0::0 1.50000 1.00000 2.00000 1.00000 4 -DEAL:0::0 1.00000 1.00000 1.00000 1.00000 1 +DEAL:0::1e-1 2.00000 2.00000 2.00000 2.00000 2 +DEAL:0::1e-2 2.00000 2.00000 2.00000 2.00000 2 +DEAL:0::1e-3 2.00000 2.00000 2.00000 2.00000 2 +DEAL:0::1e-4 2.00000 2.00000 2.00000 2.00000 2 +DEAL:0::1e-5 2.00000 2.00000 2.00000 2.00000 2 +DEAL:0::1e-6 2.00000 2.00000 2.00000 2.00000 2 +DEAL:0::1e-7 1.50000 1.00000 2.00000 1.00000 4 +DEAL:0::1e-8 1.50000 1.00000 2.00000 1.00000 4 +DEAL:0::1e-9 1.50000 1.00000 2.00000 1.00000 4 +DEAL:0::1e-10 1.50000 1.00000 2.00000 1.00000 4 +DEAL:0::1e-11 1.50000 1.00000 2.00000 1.00000 4 +DEAL:0::1e-12 1.50000 1.00000 2.00000 1.00000 4 +DEAL:0::1e-13 1.50000 1.00000 2.00000 1.00000 4 +DEAL:0::1e-14 1.50000 1.00000 2.00000 1.00000 4 +DEAL:0::1e-1 2.00000 2.00000 2.00000 2.00000 1 +DEAL:0::1e-2 2.00000 2.00000 2.00000 2.00000 1 +DEAL:0::1e-3 2.00000 2.00000 2.00000 2.00000 1 +DEAL:0::1e-4 2.00000 2.00000 2.00000 2.00000 1 +DEAL:0::1e-5 2.00000 2.00000 2.00000 2.00000 1 +DEAL:0::1e-6 2.00000 2.00000 2.00000 2.00000 1 +DEAL:0::1e-7 1.00000 1.00000 1.00000 1.00000 1 +DEAL:0::1e-8 1.00000 1.00000 1.00000 1.00000 1 +DEAL:0::1e-9 1.00000 1.00000 1.00000 1.00000 1 +DEAL:0::1e-10 1.00000 1.00000 1.00000 1.00000 1 +DEAL:0::1e-11 1.00000 1.00000 1.00000 1.00000 1 +DEAL:0::1e-12 1.00000 1.00000 1.00000 1.00000 1 +DEAL:0::1e-13 1.00000 1.00000 1.00000 1.00000 1 +DEAL:0::1e-14 1.00000 1.00000 1.00000 1.00000 1 -DEAL:1::0 1.50000 1.00000 2.00000 1.00000 4 -DEAL:1::0 1.00000 1.00000 1.00000 1.00000 1 +DEAL:1::1e-1 2.00000 2.00000 2.00000 2.00000 2 +DEAL:1::1e-2 2.00000 2.00000 2.00000 2.00000 2 +DEAL:1::1e-3 2.00000 2.00000 2.00000 2.00000 2 +DEAL:1::1e-4 2.00000 2.00000 2.00000 2.00000 2 +DEAL:1::1e-5 2.00000 2.00000 2.00000 2.00000 2 +DEAL:1::1e-6 2.00000 2.00000 2.00000 2.00000 2 +DEAL:1::1e-7 1.50000 1.00000 2.00000 1.00000 4 +DEAL:1::1e-8 1.50000 1.00000 2.00000 1.00000 4 +DEAL:1::1e-9 1.50000 1.00000 2.00000 1.00000 4 +DEAL:1::1e-10 1.50000 1.00000 2.00000 1.00000 4 +DEAL:1::1e-11 1.50000 1.00000 2.00000 1.00000 4 +DEAL:1::1e-12 1.50000 1.00000 2.00000 1.00000 4 +DEAL:1::1e-13 1.50000 1.00000 2.00000 1.00000 4 +DEAL:1::1e-14 1.50000 1.00000 2.00000 1.00000 4 +DEAL:1::1e-1 2.00000 2.00000 2.00000 2.00000 1 +DEAL:1::1e-2 2.00000 2.00000 2.00000 2.00000 1 +DEAL:1::1e-3 2.00000 2.00000 2.00000 2.00000 1 +DEAL:1::1e-4 2.00000 2.00000 2.00000 2.00000 1 +DEAL:1::1e-5 2.00000 2.00000 2.00000 2.00000 1 +DEAL:1::1e-6 2.00000 2.00000 2.00000 2.00000 1 +DEAL:1::1e-7 1.00000 1.00000 1.00000 1.00000 1 +DEAL:1::1e-8 1.00000 1.00000 1.00000 1.00000 1 +DEAL:1::1e-9 1.00000 1.00000 1.00000 1.00000 1 +DEAL:1::1e-10 1.00000 1.00000 1.00000 1.00000 1 +DEAL:1::1e-11 1.00000 1.00000 1.00000 1.00000 1 +DEAL:1::1e-12 1.00000 1.00000 1.00000 1.00000 1 +DEAL:1::1e-13 1.00000 1.00000 1.00000 1.00000 1 +DEAL:1::1e-14 1.00000 1.00000 1.00000 1.00000 1