]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make tests more robust 15486/head
authorMartin Kronbichler <martin.kronbichler@uni-a.de>
Mon, 26 Jun 2023 11:25:42 +0000 (13:25 +0200)
committerMartin Kronbichler <martin.kronbichler@uni-a.de>
Mon, 26 Jun 2023 11:25:42 +0000 (13:25 +0200)
tests/matrix_free/inverse_mass_10.cc
tests/matrix_free/inverse_mass_11.cc

index 7e4f9676e9679f53489be1c69ef0c981c54b9604..16bde126e1bca25230053d519f0a2de2ba2a72d9 100644 (file)
@@ -150,7 +150,7 @@ private:
                   make_vectorized_array(random_value<Number>(1.0e-2, 1.0e-1));
                 // make diagonal dominant because inverse is needed
                 if (d1 == d2)
-                  dyadic_coefficients[q][d1][d2] *= 1.0e2;
+                  dyadic_coefficients[q][d1][d2] += 5.0;
               }
           }
         inverse_dyadic_coefficients[q] = invert(dyadic_coefficients[q]);
@@ -220,12 +220,6 @@ test()
   tria.begin(tria.n_levels() - 1)->set_refine_flag();
   tria.last()->set_refine_flag();
   tria.execute_coarsening_and_refinement();
-  typename Triangulation<dim>::active_cell_iterator cell = tria.begin_active(),
-                                                    endc = tria.end();
-  for (; cell != endc; ++cell)
-    if (cell->center().norm() < 1e-8)
-      cell->set_refine_flag();
-  tria.execute_coarsening_and_refinement();
 
   const unsigned int degree = fe_degree;
   FESystem<dim>      fe(FE_DGQ<dim>(degree), dim);
index 1bf984c41dafeafeca4e1d6def87d3b2692f23ba..e97b5fb2fdc226b9d2b6dd4097055c4f22534893 100644 (file)
@@ -151,7 +151,7 @@ private:
                   make_vectorized_array(random_value<Number>(1.0e-2, 1.0e-1));
                 // make diagonal dominant because inverse is needed
                 if (d1 == d2)
-                  dyadic_coefficients[q][d1][d2] *= 1.0e2;
+                  dyadic_coefficients[q][d1][d2] += 5.0;
               }
           }
         inverse_dyadic_coefficients[q] = invert(dyadic_coefficients[q]);
@@ -221,12 +221,6 @@ test()
   tria.begin(tria.n_levels() - 1)->set_refine_flag();
   tria.last()->set_refine_flag();
   tria.execute_coarsening_and_refinement();
-  typename Triangulation<dim>::active_cell_iterator cell = tria.begin_active(),
-                                                    endc = tria.end();
-  for (; cell != endc; ++cell)
-    if (cell->center().norm() < 1e-8)
-      cell->set_refine_flag();
-  tria.execute_coarsening_and_refinement();
 
   const unsigned int degree = fe_degree;
   FESystem<dim>      fe(FE_DGQ<dim>(degree), dim);

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.