From 5ad7827ce784624c8640d3243be4fdb31cfb1e86 Mon Sep 17 00:00:00 2001 From: Martin Schneider <martin.schneider@iws.uni-stuttgart.de> Date: Sun, 2 Apr 2023 17:40:53 +0200 Subject: [PATCH] [ex][params] Cleanup --- exercises/exercise-runtimeparams/problem.hh | 2 +- exercises/solution/exercise-runtimeparams/problem.hh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/exercises/exercise-runtimeparams/problem.hh b/exercises/exercise-runtimeparams/problem.hh index c46be791..79e62ed6 100644 --- a/exercises/exercise-runtimeparams/problem.hh +++ b/exercises/exercise-runtimeparams/problem.hh @@ -41,7 +41,7 @@ namespace Dumux { * * The domain is sized 60 m times 40 m. * - * For the mass conservation equation neumann boundary conditions are used on + * For the mass conservation equation Neumann boundary conditions are used on * the top, on the bottom and on the right of the domain, while Dirichlet conditions * apply on the left boundary. * diff --git a/exercises/solution/exercise-runtimeparams/problem.hh b/exercises/solution/exercise-runtimeparams/problem.hh index b413b6fd..2e9b1ec5 100644 --- a/exercises/solution/exercise-runtimeparams/problem.hh +++ b/exercises/solution/exercise-runtimeparams/problem.hh @@ -94,12 +94,12 @@ public: //TODO: Task 2: Set a variable "TotalAreaSpecificInflow" to read in a value from the parameter tree via the input file totalAreaSpecificInflow_ = getParam<Scalar>("Problem.TotalAreaSpecificInflow"); //TODO: Task 3: Set a default value for the above parameter. -// totalAreaSpecificInflow_ = getParam<Scalar>("Problem.TotalAreaSpecificInflow", -1e-4); + // totalAreaSpecificInflow_ = getParam<Scalar>("Problem.TotalAreaSpecificInflow", -1e-4); //TODO: Task 4: Provide output describing where the parameter value comes from using parameter bool functions. -// if (hasParamInGroup("Problem","TotalAreaSpecificInflow")) -// std::cout << "Parameter value is read from the input file." << std::endl; -// else -// std::cout << "Using the default parameter value." << std::endl; + // if (hasParamInGroup("Problem","TotalAreaSpecificInflow")) + // std::cout << "Parameter value is read from the input file." << std::endl; + // else + // std::cout << "Using the default parameter value." << std::endl; } -- GitLab