]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
revert accidental change from r29647
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 30 May 2013 21:47:19 +0000 (21:47 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 30 May 2013 21:47:19 +0000 (21:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@29673 0785d39b-7218-0410-832d-ea1e28bc413d

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

index e0113bca7166f5fd2588a079e67b5d36d8bf6c17..640b9313ae1e268e2473890cce5f595d5905054f 100644 (file)
@@ -925,20 +925,8 @@ namespace Step50
 
     solution = 0;
 
-    try
-    {
     cg.solve (system_matrix, solution, system_rhs,
               preconditioner);
-    }
-    catch (...)
-    {
-        output_results(42);
-        constraints.distribute (solution);
-        output_results(43);
-        MPI_Barrier(MPI_COMM_WORLD);
-        exit(0);
-    }
-
     constraints.distribute (solution);
   }
 
@@ -979,7 +967,6 @@ namespace Step50
     GridRefinement::refine_and_coarsen_fixed_number (triangulation,
                                                      estimated_error_per_cell,
                                                      0.3, 0.03);
-
     triangulation.execute_coarsening_and_refinement ();
   }
 
@@ -1000,7 +987,6 @@ namespace Step50
     TrilinosWrappers::MPI::Vector res_ghosted = temp_solution;
     res_ghosted = temp;
 
-
     data_out.attach_dof_handler (mg_dof_handler);
     data_out.add_data_vector (temp_solution, "solution");
     data_out.add_data_vector (res_ghosted, "res");
@@ -1115,7 +1101,7 @@ int main (int argc, char *argv[])
       using namespace dealii;
       using namespace Step50;
 
-      LaplaceProblem<2> laplace_problem(3);
+      LaplaceProblem<2> laplace_problem(1);
       laplace_problem.run ();
     }
   catch (std::exception &exc)

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.