From: Timo Heister Date: Sun, 6 Dec 2015 15:36:14 +0000 (-0500) Subject: remove deallog.depth_console(0) from examples X-Git-Tag: v8.4.0-rc2~173^2~8 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edf41fc2ff8e8d888050a98cb210959f69adab33;p=dealii.git remove deallog.depth_console(0) from examples --- diff --git a/examples/step-11/step-11.cc b/examples/step-11/step-11.cc index 5f329f5720..8b39241786 100644 --- a/examples/step-11/step-11.cc +++ b/examples/step-11/step-11.cc @@ -440,7 +440,6 @@ int main () { try { - dealii::deallog.depth_console (0); std::cout.precision(5); // This is the main loop, doing the computations with mappings of linear diff --git a/examples/step-13/step-13.cc b/examples/step-13/step-13.cc index 9752c07a4e..ce256ead6c 100644 --- a/examples/step-13/step-13.cc +++ b/examples/step-13/step-13.cc @@ -1521,8 +1521,6 @@ int main () { try { - dealii::deallog.depth_console (0); - Step13::solve_problem<2> ("global"); Step13::solve_problem<2> ("kelly"); } diff --git a/examples/step-14/step-14.cc b/examples/step-14/step-14.cc index 724319a60b..8ce57a67b5 100644 --- a/examples/step-14/step-14.cc +++ b/examples/step-14/step-14.cc @@ -2993,7 +2993,6 @@ int main () using namespace dealii; using namespace Step14; - deallog.depth_console (0); // Describe the problem we want to solve here by passing a descriptor // object to the function doing the rest of the work: const unsigned int dim = 2; diff --git a/examples/step-15/step-15.cc b/examples/step-15/step-15.cc index d76f131925..408e3a3ca1 100644 --- a/examples/step-15/step-15.cc +++ b/examples/step-15/step-15.cc @@ -721,8 +721,6 @@ int main () using namespace dealii; using namespace Step15; - deallog.depth_console (0); - MinimalSurfaceProblem<2> laplace_problem_2d; laplace_problem_2d.run (); } diff --git a/examples/step-18/step-18.cc b/examples/step-18/step-18.cc index f11f8d9b8c..6330b9f00b 100644 --- a/examples/step-18/step-18.cc +++ b/examples/step-18/step-18.cc @@ -1906,12 +1906,9 @@ int main (int argc, char **argv) using namespace Step18; Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1); - { - deallog.depth_console (0); - TopLevel<3> elastic_problem; - elastic_problem.run (); - } + TopLevel<3> elastic_problem; + elastic_problem.run (); } catch (std::exception &exc) { diff --git a/examples/step-20/step-20.cc b/examples/step-20/step-20.cc index 76a316c37a..7c01c502cb 100644 --- a/examples/step-20/step-20.cc +++ b/examples/step-20/step-20.cc @@ -936,8 +936,6 @@ int main () using namespace dealii; using namespace Step20; - deallog.depth_console (0); - MixedLaplaceProblem<2> mixed_laplace_problem(0); mixed_laplace_problem.run (); } diff --git a/examples/step-21/step-21.cc b/examples/step-21/step-21.cc index 5c61eea5b2..208c1c87d3 100644 --- a/examples/step-21/step-21.cc +++ b/examples/step-21/step-21.cc @@ -1281,8 +1281,6 @@ int main () using namespace dealii; using namespace Step21; - deallog.depth_console (0); - TwoPhaseFlowProblem<2> two_phase_flow_problem(0); two_phase_flow_problem.run (); } diff --git a/examples/step-22/step-22.cc b/examples/step-22/step-22.cc index 78319b8c3b..1986daab7f 100644 --- a/examples/step-22/step-22.cc +++ b/examples/step-22/step-22.cc @@ -1000,8 +1000,6 @@ int main () using namespace dealii; using namespace Step22; - deallog.depth_console (0); - StokesProblem<2> flow_problem(1); flow_problem.run (); } diff --git a/examples/step-23/step-23.cc b/examples/step-23/step-23.cc index 5269ec3f7c..ee15a4587e 100644 --- a/examples/step-23/step-23.cc +++ b/examples/step-23/step-23.cc @@ -640,8 +640,6 @@ int main () using namespace dealii; using namespace Step23; - deallog.depth_console (0); - WaveEquation<2> wave_equation_solver; wave_equation_solver.run (); } diff --git a/examples/step-24/step-24.cc b/examples/step-24/step-24.cc index 86a9a74147..0e4294a821 100644 --- a/examples/step-24/step-24.cc +++ b/examples/step-24/step-24.cc @@ -563,8 +563,6 @@ int main () using namespace dealii; using namespace Step24; - deallog.depth_console (0); - TATForwardProblem<2> forward_problem_solver; forward_problem_solver.run (); } diff --git a/examples/step-25/step-25.cc b/examples/step-25/step-25.cc index 7b18fb5549..cf76f0efc8 100644 --- a/examples/step-25/step-25.cc +++ b/examples/step-25/step-25.cc @@ -714,12 +714,10 @@ namespace Step25 // @sect3{The main function} // This is the main function of the program. It creates an object of top-level -// class and calls its principal function. Also, we suppress some of the -// library output by setting deallog.depth_console to -// zero. Furthermore, if exceptions are thrown during the execution of the run -// method of the SineGordonProblem class, we catch and report -// them here. For more information about exceptions the reader should consult -// step-6. +// class and calls its principal function. If exceptions are thrown during the +// execution of the run method of the SineGordonProblem class, we +// catch and report them here. For more information about exceptions the +// reader should consult step-6. int main () { try @@ -727,8 +725,6 @@ int main () using namespace dealii; using namespace Step25; - deallog.depth_console (0); - SineGordonProblem<1> sg_problem; sg_problem.run (); } diff --git a/examples/step-26/step-26.cc b/examples/step-26/step-26.cc index 7eea6c9eda..daaa037309 100644 --- a/examples/step-26/step-26.cc +++ b/examples/step-26/step-26.cc @@ -672,8 +672,6 @@ int main() using namespace dealii; using namespace Step26; - deallog.depth_console(0); - HeatEquation<2> heat_equation_solver; heat_equation_solver.run(); diff --git a/examples/step-27/step-27.cc b/examples/step-27/step-27.cc index a3c27199cf..5ca341ca46 100644 --- a/examples/step-27/step-27.cc +++ b/examples/step-27/step-27.cc @@ -848,8 +848,6 @@ int main () using namespace dealii; using namespace Step27; - deallog.depth_console (0); - LaplaceProblem<2> laplace_problem; laplace_problem.run (); } diff --git a/examples/step-28/step-28.cc b/examples/step-28/step-28.cc index df06162d05..dd1ae6b440 100644 --- a/examples/step-28/step-28.cc +++ b/examples/step-28/step-28.cc @@ -1756,8 +1756,6 @@ int main (int argc, char **argv) using namespace dealii; using namespace Step28; - deallog.depth_console (0); - std::string filename; if (argc < 2) filename = "project.prm"; diff --git a/examples/step-31/step-31.cc b/examples/step-31/step-31.cc index 697e36439b..4a0bb5a6c0 100644 --- a/examples/step-31/step-31.cc +++ b/examples/step-31/step-31.cc @@ -2208,8 +2208,6 @@ int main (int argc, char *argv[]) using namespace dealii; using namespace Step31; - deallog.depth_console (0); - Utilities::MPI::MPI_InitFinalize mpi_initialization (argc, argv, numbers::invalid_unsigned_int); diff --git a/examples/step-32/step-32.cc b/examples/step-32/step-32.cc index d927e3170c..7acc4f3935 100644 --- a/examples/step-32/step-32.cc +++ b/examples/step-32/step-32.cc @@ -3738,8 +3738,6 @@ int main (int argc, char *argv[]) try { - deallog.depth_console (0); - std::string parameter_filename; if (argc>=2) parameter_filename = argv[1]; diff --git a/examples/step-33/step-33.cc b/examples/step-33/step-33.cc index 0290cc9391..b78ade3a5c 100644 --- a/examples/step-33/step-33.cc +++ b/examples/step-33/step-33.cc @@ -2511,7 +2511,6 @@ int main (int argc, char *argv[]) using namespace dealii; using namespace Step33; - deallog.depth_console(0); if (argc != 2) { std::cout << "Usage:" << argv[0] << " input_file" << std::endl; diff --git a/examples/step-36/step-36.cc b/examples/step-36/step-36.cc index e77d532a5f..13ab66dcf3 100644 --- a/examples/step-36/step-36.cc +++ b/examples/step-36/step-36.cc @@ -483,12 +483,8 @@ int main (int argc, char **argv) AssertThrow(Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD)==1, ExcMessage("This program can only be run in serial, use ./step-36")); - { - deallog.depth_console (0); - - EigenvalueProblem<2> problem ("step-36.prm"); - problem.run (); - } + EigenvalueProblem<2> problem ("step-36.prm"); + problem.run (); } // All the while, we are watching out if any exceptions should have been diff --git a/examples/step-37/step-37.cc b/examples/step-37/step-37.cc index cd54b7b105..fd7af71d96 100644 --- a/examples/step-37/step-37.cc +++ b/examples/step-37/step-37.cc @@ -1118,7 +1118,6 @@ int main () { using namespace Step37; - deallog.depth_console(0); LaplaceProblem laplace_problem; laplace_problem.run (); } diff --git a/examples/step-38/step-38.cc b/examples/step-38/step-38.cc index 87925ab61a..fe84666836 100644 --- a/examples/step-38/step-38.cc +++ b/examples/step-38/step-38.cc @@ -559,8 +559,6 @@ int main () using namespace dealii; using namespace Step38; - deallog.depth_console (0); - LaplaceBeltramiProblem<3> laplace_beltrami; laplace_beltrami.run(); } diff --git a/examples/step-40/step-40.cc b/examples/step-40/step-40.cc index 36f39ba0c2..52b02b2bd4 100644 --- a/examples/step-40/step-40.cc +++ b/examples/step-40/step-40.cc @@ -707,12 +707,9 @@ int main(int argc, char *argv[]) using namespace Step40; Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1); - deallog.depth_console (0); - { - LaplaceProblem<2> laplace_problem_2d; - laplace_problem_2d.run (); - } + LaplaceProblem<2> laplace_problem_2d; + laplace_problem_2d.run (); } catch (std::exception &exc) { diff --git a/examples/step-41/step-41.cc b/examples/step-41/step-41.cc index 86f70c9b28..68a889cdd1 100644 --- a/examples/step-41/step-41.cc +++ b/examples/step-41/step-41.cc @@ -667,8 +667,6 @@ int main (int argc, char *argv[]) using namespace dealii; using namespace Step41; - deallog.depth_console (0); - Utilities::MPI::MPI_InitFinalize mpi_initialization (argc, argv, numbers::invalid_unsigned_int); diff --git a/examples/step-42/step-42.cc b/examples/step-42/step-42.cc index 54ebb04827..54860f51e7 100644 --- a/examples/step-42/step-42.cc +++ b/examples/step-42/step-42.cc @@ -2203,7 +2203,6 @@ int main (int argc, char *argv[]) try { - deallog.depth_console(0); ParameterHandler prm; PlasticityContactProblem<3>::declare_parameters(prm); if (argc != 2) diff --git a/examples/step-43/step-43.cc b/examples/step-43/step-43.cc index 8fc3d5b112..89910f98f0 100644 --- a/examples/step-43/step-43.cc +++ b/examples/step-43/step-43.cc @@ -2246,8 +2246,6 @@ int main (int argc, char *argv[]) using namespace dealii; using namespace Step43; - deallog.depth_console (0); - Utilities::MPI::MPI_InitFinalize mpi_initialization (argc, argv, numbers::invalid_unsigned_int); diff --git a/examples/step-44/step-44.cc b/examples/step-44/step-44.cc index b86dc668bf..2ccb74b2b4 100644 --- a/examples/step-44/step-44.cc +++ b/examples/step-44/step-44.cc @@ -3174,8 +3174,6 @@ int main () try { - deallog.depth_console(0); - Solid<3> solid_3d("parameters.prm"); solid_3d.run(); } diff --git a/examples/step-45/step-45.cc b/examples/step-45/step-45.cc index 77f0140b05..f6b30e5949 100644 --- a/examples/step-45/step-45.cc +++ b/examples/step-45/step-45.cc @@ -764,12 +764,8 @@ int main (int argc, char *argv[]) using namespace Step45; Utilities::MPI::MPI_InitFinalize mpi_initialization (argc, argv, 1); - deallog.depth_console (0); - - { - StokesProblem<2> flow_problem(1); - flow_problem.run (); - } + StokesProblem<2> flow_problem(1); + flow_problem.run (); } catch (std::exception &exc) { diff --git a/examples/step-46/step-46.cc b/examples/step-46/step-46.cc index 31b6e51886..46f6d49714 100644 --- a/examples/step-46/step-46.cc +++ b/examples/step-46/step-46.cc @@ -1104,8 +1104,6 @@ int main () using namespace dealii; using namespace Step46; - deallog.depth_console (0); - FluidStructureProblem<2> flow_problem(1, 1); flow_problem.run (); } diff --git a/examples/step-47/step-47.cc b/examples/step-47/step-47.cc index 07f9e11727..6959040a4c 100644 --- a/examples/step-47/step-47.cc +++ b/examples/step-47/step-47.cc @@ -1105,8 +1105,6 @@ int main () using namespace dealii; using namespace Step47; - deallog.depth_console (0); - LaplaceProblem<2> laplace_problem_2d; laplace_problem_2d.run (); } diff --git a/examples/step-48/step-48.cc b/examples/step-48/step-48.cc index e567594c3f..bd3d0b5c7e 100644 --- a/examples/step-48/step-48.cc +++ b/examples/step-48/step-48.cc @@ -632,8 +632,6 @@ int main (int argc, char **argv) try { - deallog.depth_console (0); - SineGordonProblem sg_problem; sg_problem.run (); } diff --git a/examples/step-5/step-5.cc b/examples/step-5/step-5.cc index cb07bb63a5..964a761832 100644 --- a/examples/step-5/step-5.cc +++ b/examples/step-5/step-5.cc @@ -630,8 +630,6 @@ void Step5::run () // won't comment on it further: int main () { - deallog.depth_console (0); - Step5<2> laplace_problem_2d; laplace_problem_2d.run (); diff --git a/examples/step-51/step-51.cc b/examples/step-51/step-51.cc index 9b2e479d26..80434c8917 100644 --- a/examples/step-51/step-51.cc +++ b/examples/step-51/step-51.cc @@ -1385,8 +1385,6 @@ int main () { using namespace dealii; - deallog.depth_console (0); - // Now for the three calls to the main class in complete analogy to // step-7. { diff --git a/examples/step-54/step-54.cc b/examples/step-54/step-54.cc index a76bef99a3..c3c6c2ebb7 100644 --- a/examples/step-54/step-54.cc +++ b/examples/step-54/step-54.cc @@ -401,9 +401,6 @@ int main () using namespace dealii; using namespace Step54; - - deallog.depth_console (3); - const std::string in_mesh_filename = "initial_mesh_3d.vtk"; const std::string cad_file_name = "DTMB-5415_bulbous_bow.iges"; diff --git a/examples/step-6/step-6.cc b/examples/step-6/step-6.cc index b4e780d9cd..2699df2e5f 100644 --- a/examples/step-6/step-6.cc +++ b/examples/step-6/step-6.cc @@ -750,8 +750,6 @@ int main () // try to run the program as we did before... try { - deallog.depth_console (0); - Step6<2> laplace_problem_2d; laplace_problem_2d.run (); } diff --git a/examples/step-7/step-7.cc b/examples/step-7/step-7.cc index 76141dec84..69a19b9a97 100644 --- a/examples/step-7/step-7.cc +++ b/examples/step-7/step-7.cc @@ -1301,8 +1301,6 @@ int main () using namespace dealii; using namespace Step7; - deallog.depth_console (0); - // Now for the three calls to the main class. Each call is blocked into // curly braces in order to destroy the respective objects (i.e. the // finite element and the HelmholtzProblem object) at the end of the diff --git a/examples/step-8/step-8.cc b/examples/step-8/step-8.cc index 91e0443608..1dc6ed1dfa 100644 --- a/examples/step-8/step-8.cc +++ b/examples/step-8/step-8.cc @@ -778,8 +778,6 @@ int main () { try { - dealii::deallog.depth_console (0); - Step8::ElasticProblem<2> elastic_problem_2d; elastic_problem_2d.run (); } diff --git a/examples/step-9/step-9.cc b/examples/step-9/step-9.cc index 1919ffcea4..9e018aae0c 100644 --- a/examples/step-9/step-9.cc +++ b/examples/step-9/step-9.cc @@ -1330,8 +1330,6 @@ int main () { try { - dealii::deallog.depth_console (0); - dealii::MultithreadInfo::set_thread_limit(); Step9::AdvectionProblem<2> advection_problem_2d;