Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
fcd00def
Commit
fcd00def
authored
Apr 14, 2020
by
Timo Koch
Browse files
[examples] Rebuild after removing deprecated code
parent
56e81f89
Changes
5
Hide whitespace changes
Inline
Side-by-side
examples/1ptracer/doc/main.md
View file @
fcd00def
...
...
@@ -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
);
...
...
examples/1ptracer/doc/tracer.md
View file @
fcd00def
...
...
@@ -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
;
...
...
examples/2pinfiltration/README.md
View file @
fcd00def
...
...
@@ -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
...
...
examples/freeflowchannel/README.md
View file @
fcd00def
...
...
@@ -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
;
...
...
examples/shallowwaterfriction/README.md
View file @
fcd00def
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment