From 2fe7fe00fb6e38a90a06fbcf54da7a11a681231d Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sun, 6 Dec 2015 10:37:31 -0500 Subject: [PATCH] remove nonsense --- examples/step-17/step-17.cc | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/examples/step-17/step-17.cc b/examples/step-17/step-17.cc index c9ca29d365..eb381ab9e3 100644 --- a/examples/step-17/step-17.cc +++ b/examples/step-17/step-17.cc @@ -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 - // elastic_problem variable goes out of scope (and is - // destroyed) before PETSc is closed with - // PetscFinalize. (If we wouldn't use braces, the - // destructor of elastic_problem would run after - // PetscFinalize; 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) { -- 2.39.5