]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Move an assertion to the place where it was probably supposed to be.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 13 Aug 2008 00:34:02 +0000 (00:34 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 13 Aug 2008 00:34:02 +0000 (00:34 +0000)
git-svn-id: https://svn.dealii.org/trunk@16528 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-31/step-31.cc

index 1a75493c6ce0fbcdcdf8a754d1fd06b306434971..21b72dbcdf93b16d6b30b93c8670e969b8f9ef8e 100644 (file)
@@ -225,10 +225,10 @@ TrilinosAmgPreconditioner<dim>::TrilinosAmgPreconditioner(
                    (*preconditioner_matrix) (row, row_indices[col_counter]);
                ++col_counter;
              }
-           Assert (col_counter == row_lengths[row],
-                   ExcMessage("Filtering out zeros could not "
-                              "be successfully finished!"));
          }
+       Assert (col_counter == row_lengths[row],
+               ExcMessage("Filtering out zeros could not "
+                          "be successfully finished!"));
   
        Matrix->InsertGlobalValues(row, row_lengths[row],
                                   &values[0], &row_indices[0]);
@@ -2138,7 +2138,7 @@ void BoussinesqFlowProblem<dim>::run ()
 
        GridGenerator::hyper_cube (triangulation);
 
-       triangulation.refine_global (6); 
+       triangulation.refine_global (6);
 
        break;
       }

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.