From 75b11ef95dc9c53246d447eb7343da73ea65ab53 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 8 May 2019 21:24:38 -0400 Subject: [PATCH] Make SolverType const --- examples/step-56/step-56.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/step-56/step-56.cc b/examples/step-56/step-56.cc index 1e65719b82..8ac1ad02a0 100644 --- a/examples/step-56/step-56.cc +++ b/examples/step-56/step-56.cc @@ -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 triangulation; FESystem velocity_fe; @@ -450,7 +451,8 @@ namespace Step56 template StokesProblem::StokesProblem(const unsigned int pressure_degree, - SolverType solver_type) + const SolverType solver_type) + : pressure_degree(pressure_degree) , solver_type(solver_type) , triangulation(Triangulation::maximum_smoothing) -- 2.39.5