From 804d8b44bbb4b6af1e10b5759df03e0b1ece6810 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt <burchardt@igpm.rwth-aachen.de> Date: Wed, 5 Nov 2014 14:44:18 +0100 Subject: [PATCH] Use levelGridView() and leafGridView() in all files. --- nonlinelast.cc | 6 +++--- test/materialtest.cc | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nonlinelast.cc b/nonlinelast.cc index 30f6d16..b2cd719 100644 --- a/nonlinelast.cc +++ b/nonlinelast.cc @@ -77,7 +77,7 @@ int main (int argc, char *argv[]) try // Read Dirichlet boundary values std::vector<LevelBoundaryPatch> dirichletBoundary(numLevels); - dirichletBoundary[0].setup(grid.levelView(0)); + dirichletBoundary[0].setup(grid.levelGridView(0)); readBoundaryPatch<GridType>(dirichletBoundary[0], dnFile); std::vector<VectorType> dirichletValues(numLevels); @@ -225,7 +225,7 @@ int main (int argc, char *argv[]) try typedef P1NodalBasis<GridType::LeafGridView,double> P1Basis; typedef OgdenAssembler<P1Basis,P1Basis> Assembler; - P1Basis p1Basis(grid.leafView()); + P1Basis p1Basis(grid.leafGridView()); Assembler ogdenAssembler(p1Basis,p1Basis); for (int i=0; i<numHomotopySteps; i++) { @@ -288,7 +288,7 @@ int main (int argc, char *argv[]) try // Output result LeafAmiraMeshWriter<GridType> amiramesh; amiramesh.addLeafGrid(grid,true); - amiramesh.addVertexData(x, grid.leafView()); + amiramesh.addVertexData(x, grid.leafGridView()); amiramesh.write("resultGrid",true); } catch (Exception e) { diff --git a/test/materialtest.cc b/test/materialtest.cc index 2b8a66c..ee4053f 100644 --- a/test/materialtest.cc +++ b/test/materialtest.cc @@ -217,7 +217,7 @@ int main (int argc, char *argv[]) try // initialize the deformed grids with zero displacements VectorType displace(grid->size(dim)); displace=0; - DeformationFunction* deformation = new DeformationFunction(grid->leafView(),displace); + DeformationFunction* deformation = new DeformationFunction(grid->leafGridView(),displace); DeformedGridType* deformedGrid = new DeformedGridType(grid,deformation); grid->setRefinementType(GridType::COPY); @@ -233,7 +233,7 @@ int main (int argc, char *argv[]) try // Create the materials typedef P1NodalBasis<GridType::LeafGridView> P1Basis; - P1Basis p1Basis(grid->leafView()); + P1Basis p1Basis(grid->leafGridView()); // make a material typedef NeoHookeMaterial<P1Basis> MaterialType; @@ -260,7 +260,7 @@ int main (int argc, char *argv[]) try // Create the materials typedef P1NodalBasis<GridType2::LeafGridView> P1Basis2; - P1Basis2 p1Basis2(grid2->leafView()); + P1Basis2 p1Basis2(grid2->leafGridView()); // make a material typedef NeoHookeMaterial<P1Basis2> MaterialType2; -- GitLab