From 608e50a5c24b2138325df127081a941290573132 Mon Sep 17 00:00:00 2001
From: Timo Koch <timokoch@math.uio.no>
Date: Thu, 30 Mar 2023 16:12:46 +0200
Subject: [PATCH] Update some code snippets in readme

---
 exercises/exercise-fluidsystem/README.md | 3 ++-
 exercises/exercise-mainfile/README.md    | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/exercises/exercise-fluidsystem/README.md b/exercises/exercise-fluidsystem/README.md
index 90323dc3..cf206580 100644
--- a/exercises/exercise-fluidsystem/README.md
+++ b/exercises/exercise-fluidsystem/README.md
@@ -175,7 +175,7 @@ Compare the gnuplot output to the following plot of the density function from ab
 
 ### 3. Implement a new fluid system
 
-The problem file and properties file for this part of the exercise are `2p2cproblem.hh` and `2p2cproperties.hh`, respectively. 
+The problem file and properties file for this part of the exercise are `2p2cproblem.hh` and `2p2cproperties.hh`, respectively.
 We now want to implement a new fluid system consisting of two liquid phases,which are water and the previously implemented compressible component. We will consider compositional effects, which is why we now have to derive our _TypeTag_ (`ExerciseFluidsystemTwoPTwoC`) from a _TypeTag_ (`TwoPTwoC`) that holds the miscible two-phase
     two-component model properties:
 
@@ -186,6 +186,7 @@ We now want to implement a new fluid system consisting of two liquid phases,whic
 
 ```c++
 // Create a new type tag for the problem
+namespace TTag {
 struct ExerciseFluidsystemTwoPTwoC { using InheritsFrom = std::tuple<TwoPTwoC, BoxModel>; };
 } // end namespace TTag
 ```
diff --git a/exercises/exercise-mainfile/README.md b/exercises/exercise-mainfile/README.md
index de832386..0cd26b51 100644
--- a/exercises/exercise-mainfile/README.md
+++ b/exercises/exercise-mainfile/README.md
@@ -111,8 +111,8 @@ using Assembler = FVAssembler<TypeTag, DiffMethod::numeric>;
 auto assembler = std::make_shared<Assembler>(problem, fvGridGeometry, gridVariables, timeLoop);
 
 // the linear solver
-using LinearSolver = ILU0BiCGSTABBackend;
-auto linearSolver = std::make_shared<LinearSolver>();
+using LinearSolver = ILUBiCGSTABIstlSolver<LinearSolverTraits<GridGeometry>, LinearAlgebraTraitsFromAssembler<Assembler>>;
+auto linearSolver = std::make_shared<LinearSolver>(gridGeometry->gridView(), gridGeometry->dofMapper());
 
 // the non-linear solver
 using NewtonSolver = Dumux::NewtonSolver<Assembler, LinearSolver>;
-- 
GitLab