Skip to content
Snippets Groups Projects
Commit 6c36088a authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

Introduce the type 'GridView' for the LeafGridView

It simplifies the code a little.
parent ef8ae0dc
No related branches found
No related tags found
No related merge requests found
...@@ -89,6 +89,7 @@ int main (int argc, char *argv[]) try ...@@ -89,6 +89,7 @@ int main (int argc, char *argv[]) try
typedef BoundaryPatch<GridType::LeafGridView> LeafBoundaryPatch; typedef BoundaryPatch<GridType::LeafGridView> LeafBoundaryPatch;
GridType* grid= new GridType; GridType* grid= new GridType;
using GridView = GridType::LeafGridView;
grid->setRefinementType(GridType::COPY); grid->setRefinementType(GridType::COPY);
#if HAVE_AMIRAMESH #if HAVE_AMIRAMESH
...@@ -139,7 +140,7 @@ int main (int argc, char *argv[]) try ...@@ -139,7 +140,7 @@ int main (int argc, char *argv[]) try
while (true) { while (true) {
using P1Basis = Dune::Functions::LagrangeBasis<GridType::LeafGridView,1>; using P1Basis = Dune::Functions::LagrangeBasis<GridView,1>;
using FufemP1Basis = DuneFunctionsBasis<P1Basis>; using FufemP1Basis = DuneFunctionsBasis<P1Basis>;
FufemP1Basis p1NodalBasis(grid->leafGridView()); FufemP1Basis p1NodalBasis(grid->leafGridView());
...@@ -262,7 +263,7 @@ int main (int argc, char *argv[]) try ...@@ -262,7 +263,7 @@ int main (int argc, char *argv[]) try
// Estimate error and refine grid // Estimate error and refine grid
// ///////////////////////////////////////////////////////////// // /////////////////////////////////////////////////////////////
using P2Basis = Dune::Functions::LagrangeBasis<GridType::LeafGridView,2>; using P2Basis = Dune::Functions::LagrangeBasis<GridView,2>;
using FufemP2NodalBasis = DuneFunctionsBasis<P2Basis>; using FufemP2NodalBasis = DuneFunctionsBasis<P2Basis>;
HierarchicalEstimator<FufemP2NodalBasis,dim> estimator(*grid); HierarchicalEstimator<FufemP2NodalBasis,dim> estimator(*grid);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment