]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Test safety
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 11 Jan 2016 13:11:50 +0000 (14:11 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 19 Jan 2016 19:05:31 +0000 (20:05 +0100)
tests/matrix_free/parallel_multigrid.cc

index ea37224b8d5457a7a0d9c63fb48a837240591d69..e4b7c5997770718017943cd3f5c56b7aadec2196 100644 (file)
@@ -338,8 +338,8 @@ void do_test (const DoFHandler<dim>  &dof)
   typedef LaplaceOperator<dim,fe_degree,n_q_points_1d,number> LevelMatrixType;
 
   MGLevelObject<LevelMatrixType> mg_matrices;
-  mg_matrices.resize(0, dof.get_triangulation().n_levels()-1);
-  for (unsigned int level = 0; level<dof.get_triangulation().n_levels(); ++level)
+  mg_matrices.resize(0, dof.get_triangulation().n_global_levels()-1);
+  for (unsigned int level = 0; level<dof.get_triangulation().n_global_levels(); ++level)
     {
       mg_matrices[level].initialize(mapping, dof, dirichlet_boundaries, level);
     }
@@ -355,8 +355,8 @@ void do_test (const DoFHandler<dim>  &dof)
   mg_smoother;
 
   MGLevelObject<typename SMOOTHER::AdditionalData> smoother_data;
-  smoother_data.resize(0, dof.get_triangulation().n_levels()-1);
-  for (unsigned int level = 0; level<dof.get_triangulation().n_levels(); ++level)
+  smoother_data.resize(0, dof.get_triangulation().n_global_levels()-1);
+  for (unsigned int level = 0; level<dof.get_triangulation().n_global_levels(); ++level)
     {
       smoother_data[level].smoothing_range = 15.;
       smoother_data[level].degree = 5;

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.