]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
speed up test
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Oct 2012 15:52:45 +0000 (15:52 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Oct 2012 15:52:45 +0000 (15:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@27054 0785d39b-7218-0410-832d-ea1e28bc413d

tests/distributed_grids/3d_coarsening_04.cc
tests/distributed_grids/3d_coarsening_04/cmp/generic

index 45b1ce8579d056bd0e638f676e2efe6542d47134..a92ad212be1a52d0f312769c8142c831c0f5e0bb 100644 (file)
@@ -42,7 +42,7 @@ void test(std::ostream& /*out*/)
     gi.attach_triangulation (tr);
     std::ifstream in ("../deal.II/grid_in_3d_02/747.ucd");
     gi.read (in);
-    tr.refine_global (1);
+                                    //tr.refine_global (1);
   }
 
   {
@@ -50,18 +50,22 @@ void test(std::ostream& /*out*/)
     gi.attach_triangulation (tr2);
     std::ifstream in ("../deal.II/grid_in_3d_02/747.ucd");
     gi.read (in);
-    tr2.refine_global (1);
+                                    //tr2.refine_global (1);
   }
 
   Assert (tr.n_active_cells() == tr2.n_active_cells(),
          ExcInternalError());
+      deallog << " Number of cells: "
+             << tr.n_active_cells() << ' '
+             << tr2.n_active_cells()
+             << std::endl;
 
 
-  for (unsigned int i=0; i<1; ++i)
+  for (unsigned int i=0; i<2; ++i)
     {
                                       // refine one-tenth of cells randomly
       std::vector<bool> flags (tr.n_active_cells(), false);
-      for (unsigned int k=0; k<flags.size()/10 + 1; ++k)
+      for (unsigned int k=0; k<flags.size()/30 + 1; ++k)
        flags[rand() % flags.size()] = true;
                                       // make sure there's at least one that
                                       // will be refined
@@ -99,8 +103,6 @@ void test(std::ostream& /*out*/)
       tr.execute_coarsening_and_refinement ();
       tr2.execute_coarsening_and_refinement ();
 
-      deallog << std::endl;
-
       deallog << i << " Number of cells: "
              << tr.n_active_cells() << ' '
              << tr2.n_active_cells()
index 3ec0fcb511c59872ad320db3bcb447a43e1eedec..279dd3c5906ce3f017dd071ba3f75ef4aba3ae74 100644 (file)
@@ -1,3 +1,4 @@
 
-DEAL:3d::
-DEAL:3d::0 Number of cells: 689635 689635
+DEAL:3d:: Number of cells: 51823 51823
+DEAL:3d::0 Number of cells: 63786 63786
+DEAL:3d::1 Number of cells: 89889 89889

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.