Commit fcd00def authored by Timo Koch's avatar Timo Koch
Browse files

[examples] Rebuild after removing deprecated code

parent 56e81f89
......@@ -191,7 +191,7 @@ problem defined in `problem_1p.hh`. Let us now write this solution to a VTK file
`VTKWriter`. Moreover, we add the permeability distribution to the writer.
```cpp
using GridView = GetPropType<OnePTypeTag, Properties::GridView>;
using GridView = typename GridGeometry::GridView;
Dune::VTKWriter<GridView> onepWriter(leafGridView);
onepWriter.addCellData(p, "p");
......@@ -296,7 +296,7 @@ Within the time loop, we will use this assembler in each time step to assemble t
```cpp
using TracerAssembler = FVAssembler<TracerTypeTag, DiffMethod::analytic, /*implicit=*/false>;
auto assembler = std::make_shared<TracerAssembler>(tracerProblem, gridGeometry, gridVariables, timeLoop);
auto assembler = std::make_shared<TracerAssembler>(tracerProblem, gridGeometry, gridVariables, timeLoop, xOld);
assembler->setLinearSystem(A, r);
```
......@@ -328,9 +328,6 @@ and the time step sizes used is printed to the terminal.
```cpp
timeLoop->start(); do
{
// First we define the old solution as the solution of the previous time step for storage evaluations.
assembler->setPreviousSolution(xOld);
// Then the linear system is assembled.
Dune::Timer assembleTimer;
assembler->assembleJacobianAndResidual(x);
......
......@@ -87,7 +87,7 @@ class TracerFluidSystem : public FluidSystems::Base<GetPropType<TypeTag, Propert
// Some convenience aliases to be used inside this class.
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
using Problem = GetPropType<TypeTag, Properties::Problem>;
using GridView = GetPropType<TypeTag, Properties::GridView>;
using GridView = typename GetPropType<TypeTag, Properties::GridGeometry>::GridView;
using Element = typename GridView::template Codim<0>::Entity;
using FVElementGeometry = typename GetPropType<TypeTag, Properties::GridGeometry>::LocalView;
using SubControlVolume = typename FVElementGeometry::SubControlVolume;
......
......@@ -938,7 +938,7 @@ we set the assembler with the time loop because we have an instationary problem
```cpp
using Assembler = FVAssembler<TypeTag, DiffMethod::numeric>;
auto assembler = std::make_shared<Assembler>(problem, gridGeometry, gridVariables, timeLoop);
auto assembler = std::make_shared<Assembler>(problem, gridGeometry, gridVariables, timeLoop, xOld);
```
we set the linear solver
......
......@@ -498,9 +498,7 @@ The second surface (second call of addSurface) is placed at the outlet of the ch
const Scalar offsetX = (numCellsX % 2 == 0) ? 0.0 : 0.5*((xMax - xMin) / numCellsX);
DUNE_NO_DEPRECATED_BEGIN
using GridView = GetPropType<TypeTag, Properties::GridView>;
DUNE_NO_DEPRECATED_END
using GridView = typename GridGeometry::GridView;
using Element = typename GridView::template Codim<0>::Entity;
using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
......
......@@ -901,7 +901,7 @@ we set the assembler with the time loop because we have an instationary problem.
```cpp
using Assembler = FVAssembler<TypeTag, DiffMethod::numeric>;
auto assembler = std::make_shared<Assembler>(problem, gridGeometry, gridVariables, timeLoop);
auto assembler = std::make_shared<Assembler>(problem, gridGeometry, gridVariables, timeLoop, xOld);
```
We set the linear solver.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment