]> https://gitweb.dealii.org/ - dealii.git/commitdiff
remove nonsense
authorTimo Heister <timo.heister@gmail.com>
Sun, 6 Dec 2015 15:37:31 +0000 (10:37 -0500)
committerTimo Heister <timo.heister@gmail.com>
Sun, 6 Dec 2015 18:47:09 +0000 (13:47 -0500)
examples/step-17/step-17.cc

index c9ca29d365a2c0fb8aa73b8ee0e8e56cfd16bee7..eb381ab9e3b4f564aa925ae08ffce0cdf009b7cf 100644 (file)
@@ -926,21 +926,11 @@ int main (int argc, char **argv)
 
       // Here is the only real difference: PETSc requires that we initialize
       // it at the beginning of the program, and un-initialize it at the
-      // end. The class MPI_InitFinalize takes care of that. The original code
-      // sits in between, enclosed in braces to make sure that the
-      // <code>elastic_problem</code> variable goes out of scope (and is
-      // destroyed) before PETSc is closed with
-      // <code>PetscFinalize</code>. (If we wouldn't use braces, the
-      // destructor of <code>elastic_problem</code> would run after
-      // <code>PetscFinalize</code>; since the destructor involves calls to
-      // PETSc functions, we would get strange error messages from PETSc.)
+      // end. The class MPI_InitFinalize takes care of that.
       Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
-      {
-        deallog.depth_console (0);
 
-        ElasticProblem<2> elastic_problem;
-        elastic_problem.run ();
-      }
+      ElasticProblem<2> elastic_problem;
+      elastic_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.