]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make SolverType const 8043/head
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 9 May 2019 01:24:38 +0000 (21:24 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 9 May 2019 01:24:38 +0000 (21:24 -0400)
examples/step-56/step-56.cc

index 1e65719b82c643170549bdb3bcbcea4c0c78824e..8ac1ad02a097ea992a4e1206ece21243e655cc12 100644 (file)
@@ -409,7 +409,8 @@ namespace Step56
   class StokesProblem
   {
   public:
-    StokesProblem(const unsigned int pressure_degree, SolverType solver_type);
+    StokesProblem(const unsigned int pressure_degree,
+                  const SolverType   solver_type);
     void run();
 
   private:
@@ -421,7 +422,7 @@ namespace Step56
     void output_results(const unsigned int refinement_cycle) const;
 
     const unsigned int pressure_degree;
-    SolverType         solver_type;
+    const SolverType   solver_type;
 
     Triangulation<dim> triangulation;
     FESystem<dim>      velocity_fe;
@@ -450,7 +451,8 @@ namespace Step56
 
   template <int dim>
   StokesProblem<dim>::StokesProblem(const unsigned int pressure_degree,
-                                    SolverType         solver_type)
+                                    const SolverType   solver_type)
+
     : pressure_degree(pressure_degree)
     , solver_type(solver_type)
     , triangulation(Triangulation<dim>::maximum_smoothing)

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.