]> https://gitweb.dealii.org/ - dealii.git/commitdiff
astyle
authorTimo Heister <timo.heister@gmail.com>
Tue, 20 Oct 2015 21:50:29 +0000 (17:50 -0400)
committerTimo Heister <timo.heister@gmail.com>
Tue, 20 Oct 2015 21:50:29 +0000 (17:50 -0400)
examples/step-50/step-50.cc

index fe93a10219df8f626716845833874ac021ded788..64efd34756c57a2d0405aa07f7de8b8427f761ee 100644 (file)
@@ -119,9 +119,9 @@ namespace Step50
 
     parallel::distributed::Triangulation<dim>   triangulation;
     FE_Q<dim>            fe;
-      DoFHandler<dim>    mg_dof_handler;
+    DoFHandler<dim>    mg_dof_handler;
 
-      typedef LA::MPI::SparseMatrix matrix_t;
+    typedef LA::MPI::SparseMatrix matrix_t;
     typedef LA::MPI::Vector vector_t;
 
     matrix_t system_matrix;
@@ -136,12 +136,12 @@ namespace Step50
 
     const unsigned int degree;
 
-      // Finally we are storing the various parallel multigrid matrices. Our
-      // problem is self-adjoint, so the interface matrices are the transpose
-      // of each other, so we only need to compute/store them once.
+    // Finally we are storing the various parallel multigrid matrices. Our
+    // problem is self-adjoint, so the interface matrices are the transpose
+    // of each other, so we only need to compute/store them once.
     MGLevelObject<matrix_t> mg_matrices;
     MGLevelObject<matrix_t> mg_interface_matrices;
-      // 
+    //
     MGConstrainedDoFs                    mg_constrained_dofs;
   };
 
@@ -787,27 +787,28 @@ namespace Step50
     SolverCG<vector_t> solver (solver_control);
 
     if (false)
-      {/*
-        // code to optionally compare to Trilinos ML
-        TrilinosWrappers::PreconditionAMG prec;
-
-        TrilinosWrappers::PreconditionAMG::AdditionalData Amg_data;
-        //    Amg_data.constant_modes = constant_modes;
-        Amg_data.elliptic = true;
-        Amg_data.higher_order_elements = true;
-        Amg_data.smoother_sweeps = 2;
-        Amg_data.aggregation_threshold = 0.02;
-        // Amg_data.symmetric = true;
-
-        prec.initialize (system_matrix,
-                         Amg_data);
-        solver.solve (system_matrix, solution, system_rhs, prec);
-       */
+      {
+        /*
+         // code to optionally compare to Trilinos ML
+         TrilinosWrappers::PreconditionAMG prec;
+
+         TrilinosWrappers::PreconditionAMG::AdditionalData Amg_data;
+         //    Amg_data.constant_modes = constant_modes;
+         Amg_data.elliptic = true;
+         Amg_data.higher_order_elements = true;
+         Amg_data.smoother_sweeps = 2;
+         Amg_data.aggregation_threshold = 0.02;
+         // Amg_data.symmetric = true;
+
+         prec.initialize (system_matrix,
+                          Amg_data);
+         solver.solve (system_matrix, solution, system_rhs, prec);
+        */
       }
     else
       {
         solver.solve (system_matrix, solution, system_rhs,
-                  preconditioner);
+                      preconditioner);
       }
 
     constraints.distribute (solution);

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.