From 726f352a946567b2d70532f8f58b341c9adda07a Mon Sep 17 00:00:00 2001 From: Martin Schneider <martin.schneider@iws.uni-stuttgart.de> Date: Tue, 17 Jul 2018 15:26:18 +0200 Subject: [PATCH] [tutorial] Fix typos --- exercises/exercise-mainfile/README.md | 4 ++-- exercises/exercise-mainfile/exercise_1p_a.cc | 2 +- exercises/exercise-mainfile/exercise_1p_b.cc | 4 ++-- exercises/exercise-mainfile/exercise_1p_c.cc | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/exercises/exercise-mainfile/README.md b/exercises/exercise-mainfile/README.md index b1dec1ab..a4028bed 100644 --- a/exercises/exercise-mainfile/README.md +++ b/exercises/exercise-mainfile/README.md @@ -76,7 +76,7 @@ using GridVariables = typename GET_PROP_TYPE(TypeTag, GridVariables); auto gridVariables = std::make_shared<GridVariables>(problem, fvGridGeometry); gridVariables->init(x); -// intialize the vtk output module +// initialize the vtk output module using VtkOutputFields = typename GET_PROP_TYPE(TypeTag, VtkOutputFields); VtkOutputModule<TypeTag> vtkWriter(*problem, *fvGridGeometry, *gridVariables, x, problem->name()); VtkOutputFields::init(vtkWriter); //!< Add model specific output fields @@ -183,6 +183,6 @@ For the incompressible one phase problem it is possible to also have an analytic ```c++ // TODO: dumux-course-task ``` -For the analytic solution of your immiscible problem you need analytic solutions for the derivatives of the jacobian. For that we have a special local residual, the `OneincompressibleLocalResidual` which provides that. You just need to include that in your `1pproblem.hh` and use that instead of the `immisciblelocalresidual.hh` which is used as a standard for all immiscible models. +For the analytic solution of your immiscible problem you need analytic solutions for the derivatives of the jacobian. For that we have a special local residual, the `OnePIncompressibleLocalResidual` which provides that. You just need to include that in your `1pproblem.hh` and use that instead of the `immisciblelocalresidual.hh` which is used as a standard for all immiscible models. Additionally you need to set the differentiation method in the main file `exercise_1p_a.cc` to analytic. diff --git a/exercises/exercise-mainfile/exercise_1p_a.cc b/exercises/exercise-mainfile/exercise_1p_a.cc index 13e72dc7..5ce59ce9 100644 --- a/exercises/exercise-mainfile/exercise_1p_a.cc +++ b/exercises/exercise-mainfile/exercise_1p_a.cc @@ -98,7 +98,7 @@ int main(int argc, char** argv) try auto gridVariables = std::make_shared<GridVariables>(problem, fvGridGeometry); gridVariables->init(x); - // intialize the vtk output module + // initialize the vtk output module using VtkOutputFields = typename GET_PROP_TYPE(TypeTag, VtkOutputFields); VtkOutputModule<TypeTag> vtkWriter(*problem, *fvGridGeometry, *gridVariables, x, problem->name()); VtkOutputFields::init(vtkWriter); //!< Add model specific output fields diff --git a/exercises/exercise-mainfile/exercise_1p_b.cc b/exercises/exercise-mainfile/exercise_1p_b.cc index 3bf7d527..4fdde99b 100644 --- a/exercises/exercise-mainfile/exercise_1p_b.cc +++ b/exercises/exercise-mainfile/exercise_1p_b.cc @@ -75,7 +75,7 @@ int main(int argc, char** argv) try gridManager.init(); //////////////////////////////////////////////////////////// - // run instationary non-linear problem on this grid + // run stationary non-linear problem on this grid //////////////////////////////////////////////////////////// // we compute on the leaf grid view @@ -99,7 +99,7 @@ int main(int argc, char** argv) try auto gridVariables = std::make_shared<GridVariables>(problem, fvGridGeometry); gridVariables->init(x); - // intialize the vtk output module + // initialize the vtk output module using VtkOutputFields = typename GET_PROP_TYPE(TypeTag, VtkOutputFields); VtkOutputModule<TypeTag> vtkWriter(*problem, *fvGridGeometry, *gridVariables, x, problem->name()); VtkOutputFields::init(vtkWriter); //!< Add model specific output fields diff --git a/exercises/exercise-mainfile/exercise_1p_c.cc b/exercises/exercise-mainfile/exercise_1p_c.cc index e6a91e62..aaa2209c 100644 --- a/exercises/exercise-mainfile/exercise_1p_c.cc +++ b/exercises/exercise-mainfile/exercise_1p_c.cc @@ -101,7 +101,7 @@ int main(int argc, char** argv) try auto gridVariables = std::make_shared<GridVariables>(problem, fvGridGeometry); gridVariables->init(x, xOld); - // intialize the vtk output module + // initialize the vtk output module using VtkOutputFields = typename GET_PROP_TYPE(TypeTag, VtkOutputFields); VtkOutputModule<TypeTag> vtkWriter(*problem, *fvGridGeometry, *gridVariables, x, problem->name()); VtkOutputFields::init(vtkWriter); //!< Add model specific output fields -- GitLab