Skip to content
Snippets Groups Projects
Commit 4070f629 authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

[example][tracer] Fix GridView deprecation warning

parent 265a7b61
No related branches found
No related tags found
2 merge requests!2152WIP add default fluxcache properties,!2094[example][tracer] Fix GridView deprecation warning
...@@ -153,7 +153,7 @@ int main(int argc, char** argv) try ...@@ -153,7 +153,7 @@ int main(int argc, char** argv) try
// problem defined in `problem_1p.hh`. Let us now write this solution to a VTK file using the Dune // problem defined in `problem_1p.hh`. Let us now write this solution to a VTK file using the Dune
// `VTKWriter`. Moreover, we add the permeability distribution to the writer. // `VTKWriter`. Moreover, we add the permeability distribution to the writer.
// [[codeblock]] // [[codeblock]]
using GridView = GetPropType<OnePTypeTag, Properties::GridView>; using GridView = typename GridGeometry::GridView;
Dune::VTKWriter<GridView> onepWriter(leafGridView); Dune::VTKWriter<GridView> onepWriter(leafGridView);
onepWriter.addCellData(p, "p"); onepWriter.addCellData(p, "p");
......
...@@ -64,7 +64,7 @@ class TracerFluidSystem : public FluidSystems::Base<GetPropType<TypeTag, Propert ...@@ -64,7 +64,7 @@ class TracerFluidSystem : public FluidSystems::Base<GetPropType<TypeTag, Propert
// Some convenience aliases to be used inside this class. // Some convenience aliases to be used inside this class.
using Scalar = GetPropType<TypeTag, Properties::Scalar>; using Scalar = GetPropType<TypeTag, Properties::Scalar>;
using Problem = GetPropType<TypeTag, Properties::Problem>; 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 Element = typename GridView::template Codim<0>::Entity;
using FVElementGeometry = typename GetPropType<TypeTag, Properties::GridGeometry>::LocalView; using FVElementGeometry = typename GetPropType<TypeTag, Properties::GridGeometry>::LocalView;
using SubControlVolume = typename FVElementGeometry::SubControlVolume; using SubControlVolume = typename FVElementGeometry::SubControlVolume;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment