diff --git a/nonlinelast.cc b/nonlinelast.cc index 30f6d16ce8c37ded1e5b04e933f2e632b8fdab22..b2cd719e0224c8a5d88759edcac293b4395a232c 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 2b8a66ca3ce4acaa4d02095bd686f5175ce51b3d..ee4053f9d7c7082a7a1bf9594aa0798eeffebc0b 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;