From: Martin Kronbichler Date: Wed, 16 Feb 2022 19:47:55 +0000 (+0100) Subject: Improve indentation in a few tutorials X-Git-Tag: v9.4.0-rc1~471^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a31a15c8de8ed138c427e7087ad534cc3530788d;p=dealii.git Improve indentation in a few tutorials --- diff --git a/examples/step-37/step-37.cc b/examples/step-37/step-37.cc index 134fca1880..ae9b2811e0 100644 --- a/examples/step-37/step-37.cc +++ b/examples/step-37/step-37.cc @@ -720,29 +720,26 @@ namespace Step37 // grid, we also need to specifically enable the multigrid hierarchy. template LaplaceProblem::LaplaceProblem() - : #ifdef DEAL_II_WITH_P4EST - triangulation( - MPI_COMM_WORLD, - Triangulation::limit_level_difference_at_vertices, - parallel::distributed::Triangulation::construct_multigrid_hierarchy) - , + : triangulation(MPI_COMM_WORLD, + Triangulation::limit_level_difference_at_vertices, + parallel::distributed::Triangulation< + dim>::construct_multigrid_hierarchy) #else - triangulation(Triangulation::limit_level_difference_at_vertices) - , + : triangulation(Triangulation::limit_level_difference_at_vertices) #endif - fe(degree_finite_element) + , fe(degree_finite_element) , dof_handler(triangulation) , setup_time(0.) , pcout(std::cout, Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0) - , // The LaplaceProblem class holds an additional output stream that // collects detailed timings about the setup phase. This stream, called // time_details, is disabled by default through the @p false argument // specified here. For detailed timings, removing the @p false argument // prints all the details. - time_details(std::cout, - false && Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0) + , time_details(std::cout, + false && + Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0) {} diff --git a/examples/step-48/step-48.cc b/examples/step-48/step-48.cc index 8daa6d4cc6..b366e9ba9a 100644 --- a/examples/step-48/step-48.cc +++ b/examples/step-48/step-48.cc @@ -345,12 +345,10 @@ namespace Step48 template SineGordonProblem::SineGordonProblem() : pcout(std::cout, Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0) - , #ifdef DEAL_II_WITH_P4EST - triangulation(MPI_COMM_WORLD) - , + , triangulation(MPI_COMM_WORLD) #endif - fe(QGaussLobatto<1>(fe_degree + 1)) + , fe(QGaussLobatto<1>(fe_degree + 1)) , dof_handler(triangulation) , n_global_refinements(10 - 2 * dim) , time(-10) diff --git a/examples/step-59/step-59.cc b/examples/step-59/step-59.cc index 8d5561c470..029fc6a8cd 100644 --- a/examples/step-59/step-59.cc +++ b/examples/step-59/step-59.cc @@ -949,18 +949,15 @@ namespace Step59 template LaplaceProblem::LaplaceProblem() - : #ifdef DEAL_II_WITH_P4EST - triangulation( - MPI_COMM_WORLD, - Triangulation::limit_level_difference_at_vertices, - parallel::distributed::Triangulation::construct_multigrid_hierarchy) - , + : triangulation(MPI_COMM_WORLD, + Triangulation::limit_level_difference_at_vertices, + parallel::distributed::Triangulation< + dim>::construct_multigrid_hierarchy) #else - triangulation(Triangulation::limit_level_difference_at_vertices) - , + : triangulation(Triangulation::limit_level_difference_at_vertices) #endif - fe(fe_degree) + , fe(fe_degree) , dof_handler(triangulation) , setup_time(0.) , pcout(std::cout, Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0)