]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix several tests 2137/head
authorTimo Heister <timo.heister@gmail.com>
Fri, 5 Feb 2016 13:02:50 +0000 (08:02 -0500)
committerTimo Heister <timo.heister@gmail.com>
Fri, 5 Feb 2016 14:23:49 +0000 (09:23 -0500)
tests/hp/fe_nothing_12.cc
tests/hp/fe_nothing_13.cc
tests/hp/fe_nothing_14.cc
tests/petsc/different_matrix_preconditioner.cc

index cc9b9629ad676d2b52d128d9380378b5c7010279..c9f4fa5da730d28e7f1f50b66129171613f4cf06 100644 (file)
@@ -57,7 +57,9 @@ void test ()
   std::vector<unsigned int> sub(dim, 1);
   sub[dim-1] = 2;
 
-  GridGenerator::subdivided_hyper_rectangle (triangulation, sub, Point<dim>(), Point<dim>());
+  Point<2> p1;
+  Point<2> p2(1.0, 2.0);
+  GridGenerator::subdivided_hyper_rectangle (triangulation, sub, p1, p2);
   triangulation.begin_active()->set_refine_flag();
   triangulation.execute_coarsening_and_refinement();
 
index ab972f9ad88ff0a49b1df3b64061c2da97133d8d..162d4dddca55b912497401269e8dc66db84738c3 100644 (file)
@@ -62,7 +62,9 @@ void test ()
   std::vector<unsigned int> sub(dim, 1);
   sub[dim-1] = 2;
 
-  GridGenerator::subdivided_hyper_rectangle (triangulation, sub, Point<dim>(), Point<dim>());
+  Point<2> p1;
+  Point<2> p2(1.0, 2.0);
+  GridGenerator::subdivided_hyper_rectangle (triangulation, sub, p1, p2);
   triangulation.begin_active()->set_refine_flag();
   triangulation.execute_coarsening_and_refinement();
 
index a75b0a3a717e4ee1c6443b65d3f0230b03e7dc29..e88b50911a5ba3727047d59020ecaab9acce1196 100644 (file)
@@ -74,7 +74,9 @@ void test ()
   std::vector<unsigned int> sub(dim, 1);
   sub[dim-1] = 2;
 
-  GridGenerator::subdivided_hyper_rectangle (triangulation, sub, Point<dim>(), Point<dim>());
+  Point<2> p1;
+  Point<2> p2(1.0, 2.0);
+  GridGenerator::subdivided_hyper_rectangle (triangulation, sub, p1, p2);
   triangulation.begin_active()->set_refine_flag();
   triangulation.execute_coarsening_and_refinement();
 
index 9f9645487ce3b3299d1e0fd281fb0a5a567ebd56..05135b2866c1ec54a40a15c5533a439f581969cc 100644 (file)
@@ -70,12 +70,14 @@ int main(int argc, char **argv)
   PETScWrappers::SparseMatrix A2;
   A.reinit(sparsity_pattern);
   A2.reinit(sparsity_pattern);
-  for (auto it : A_tmp)
+
+  SparseMatrix<double>::iterator it = A_tmp.begin(), endit = A_tmp.end();
+  for (; it!=endit; ++it)
     {
-      const auto row = it.row();
-      const auto column = it.column();
-      A.set(row, column, it.value());
-      A2.set(row, column, 1000. * it.value()); // scale A2 by 1000.
+      const auto row = it->row();
+      const auto column = it->column();
+      A.set(row, column, it->value());
+      A2.set(row, column, 1000. * it->value()); // scale A2 by 1000.
     }
   A.compress(VectorOperation::insert);
   A2.compress(VectorOperation::insert);

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.