]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
simplify test
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 12 Nov 2013 14:59:57 +0000 (14:59 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 12 Nov 2013 14:59:57 +0000 (14:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@31634 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/find_cell_10.cc

index e52c159ddb98767b054f97ae1ccb14828377074d..1804d9ac8dd4cefe89025a484cb55c16e18242bf 100644 (file)
@@ -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;
 }
 

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.