]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
make 3d test run faster by refining less. It runs close to the time limit on the...
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 22 Oct 2013 18:39:38 +0000 (18:39 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 22 Oct 2013 18:39:38 +0000 (18:39 +0000)
git-svn-id: https://svn.dealii.org/trunk@31387 0785d39b-7218-0410-832d-ea1e28bc413d

tests/distributed_grids/3d_coarsening_03.cc
tests/distributed_grids/3d_coarsening_03.output

index b1f2b811f263a6c0c0e6c225aaa556e2d4ce9415..3e4b4b26f081234d87f8ba53babe62842084c19b 100644 (file)
@@ -46,7 +46,7 @@ void test(std::ostream & /*out*/)
     gi.attach_triangulation (tr);
     std::ifstream in (SOURCE_DIR "/../deal.II/grid_in_3d/4.in");
     gi.read_xda (in);
-    tr.refine_global (1);
+                                    //tr.refine_global (1);
   }
 
   {
@@ -54,18 +54,18 @@ void test(std::ostream & /*out*/)
     gi.attach_triangulation (tr2);
     std::ifstream in (SOURCE_DIR "/../deal.II/grid_in_3d/4.in");
     gi.read_xda (in);
-    tr2.refine_global (1);
+                                    //tr2.refine_global (1);
   }
 
   Assert (tr.n_active_cells() == tr2.n_active_cells(),
           ExcInternalError());
 
 
-  for (unsigned int i=0; i<1; ++i)
+  for (unsigned int i=0; i<2; ++i)
     {
-      // refine one-fifth of cells randomly
+      // refine 10% of cells randomly
       std::vector<bool> flags (tr.n_active_cells(), false);
-      for (unsigned int k=0; k<flags.size()/5 + 1; ++k)
+      for (unsigned int k=0; k<flags.size()/10 + 1; ++k)
         flags[rand() % flags.size()] = true;
       // make sure there's at least one that
       // will be refined
@@ -103,7 +103,7 @@ void test(std::ostream & /*out*/)
       tr.execute_coarsening_and_refinement ();
       tr2.execute_coarsening_and_refinement ();
 
-//write_vtk(tr, "1");
+//      write_vtk(tr, "1");
       deallog << std::endl;
 
       deallog << i << " Number of cells: "
index d2679b5fe86dd158da1d104f6400c3d908aa8f08..b96d2feb8a9c47bf53ab59ce192855d31e24f166 100644 (file)
@@ -1,3 +1,5 @@
 
 DEAL:3d::
-DEAL:3d::0 Number of cells: 251047 251047
+DEAL:3d::0 Number of cells: 23050 23050
+DEAL:3d::
+DEAL:3d::1 Number of cells: 64882 64882

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.