From: Daniel Arndt Date: Thu, 9 May 2019 01:24:38 +0000 (-0400) Subject: Make SolverType const X-Git-Tag: v9.1.0-rc1~111^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8043%2Fhead;p=dealii.git Make SolverType const --- 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)