From 728312b38e2a0d05ae0efba02959aabb5a0fcf35 Mon Sep 17 00:00:00 2001 From: heister Date: Tue, 12 Nov 2013 14:59:57 +0000 Subject: [PATCH] simplify test git-svn-id: https://svn.dealii.org/trunk@31634 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/find_cell_10.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/bits/find_cell_10.cc b/tests/bits/find_cell_10.cc index e52c159ddb..1804d9ac8d 100644 --- a/tests/bits/find_cell_10.cc +++ b/tests/bits/find_cell_10.cc @@ -76,16 +76,12 @@ using namespace dealii; void test() { Triangulation<2> triangulation; - FE_Q<2> fe(1); - DoFHandler<2> dof_handler(triangulation); GridIn<2> grid_in1; grid_in1.attach_triangulation (triangulation); std::ifstream input_file1(SOURCE_DIR "/grids/mesh.msh"); grid_in1.read_msh(input_file1); - dof_handler.distribute_dofs (fe); - Point< 2 > ePos; ePos(0) = 0.0653630060373507487669897386695; ePos(1) = 1125.59175030825804242340382189; @@ -93,10 +89,10 @@ void test() MappingQ<2> mapping(1); MappingQ1<2> &mapping2 = StaticMappingQ1< 2 >::mapping; deallog << "1:" << std::endl; - GridTools::find_active_cell_around_point (mapping, dof_handler, ePos); + GridTools::find_active_cell_around_point (mapping, triangulation, ePos); deallog << "2:" << std::endl; //this second call seems to hang/crash: - GridTools::find_active_cell_around_point (mapping2, dof_handler, ePos); + GridTools::find_active_cell_around_point (mapping2, triangulation, ePos); deallog << "done" << std::endl; } -- 2.39.5