Skip to content
Snippets Groups Projects
Commit 804d8b44 authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

Use levelGridView() and leafGridView() in all files.

parent 9c6f1aba
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,7 @@ int main (int argc, char *argv[]) try ...@@ -77,7 +77,7 @@ int main (int argc, char *argv[]) try
// Read Dirichlet boundary values // Read Dirichlet boundary values
std::vector<LevelBoundaryPatch> dirichletBoundary(numLevels); std::vector<LevelBoundaryPatch> dirichletBoundary(numLevels);
dirichletBoundary[0].setup(grid.levelView(0)); dirichletBoundary[0].setup(grid.levelGridView(0));
readBoundaryPatch<GridType>(dirichletBoundary[0], dnFile); readBoundaryPatch<GridType>(dirichletBoundary[0], dnFile);
std::vector<VectorType> dirichletValues(numLevels); std::vector<VectorType> dirichletValues(numLevels);
...@@ -225,7 +225,7 @@ int main (int argc, char *argv[]) try ...@@ -225,7 +225,7 @@ int main (int argc, char *argv[]) try
typedef P1NodalBasis<GridType::LeafGridView,double> P1Basis; typedef P1NodalBasis<GridType::LeafGridView,double> P1Basis;
typedef OgdenAssembler<P1Basis,P1Basis> Assembler; typedef OgdenAssembler<P1Basis,P1Basis> Assembler;
P1Basis p1Basis(grid.leafView()); P1Basis p1Basis(grid.leafGridView());
Assembler ogdenAssembler(p1Basis,p1Basis); Assembler ogdenAssembler(p1Basis,p1Basis);
for (int i=0; i<numHomotopySteps; i++) { for (int i=0; i<numHomotopySteps; i++) {
...@@ -288,7 +288,7 @@ int main (int argc, char *argv[]) try ...@@ -288,7 +288,7 @@ int main (int argc, char *argv[]) try
// Output result // Output result
LeafAmiraMeshWriter<GridType> amiramesh; LeafAmiraMeshWriter<GridType> amiramesh;
amiramesh.addLeafGrid(grid,true); amiramesh.addLeafGrid(grid,true);
amiramesh.addVertexData(x, grid.leafView()); amiramesh.addVertexData(x, grid.leafGridView());
amiramesh.write("resultGrid",true); amiramesh.write("resultGrid",true);
} catch (Exception e) { } catch (Exception e) {
......
...@@ -217,7 +217,7 @@ int main (int argc, char *argv[]) try ...@@ -217,7 +217,7 @@ int main (int argc, char *argv[]) try
// initialize the deformed grids with zero displacements // initialize the deformed grids with zero displacements
VectorType displace(grid->size(dim)); VectorType displace(grid->size(dim));
displace=0; displace=0;
DeformationFunction* deformation = new DeformationFunction(grid->leafView(),displace); DeformationFunction* deformation = new DeformationFunction(grid->leafGridView(),displace);
DeformedGridType* deformedGrid = new DeformedGridType(grid,deformation); DeformedGridType* deformedGrid = new DeformedGridType(grid,deformation);
grid->setRefinementType(GridType::COPY); grid->setRefinementType(GridType::COPY);
...@@ -233,7 +233,7 @@ int main (int argc, char *argv[]) try ...@@ -233,7 +233,7 @@ int main (int argc, char *argv[]) try
// Create the materials // Create the materials
typedef P1NodalBasis<GridType::LeafGridView> P1Basis; typedef P1NodalBasis<GridType::LeafGridView> P1Basis;
P1Basis p1Basis(grid->leafView()); P1Basis p1Basis(grid->leafGridView());
// make a material // make a material
typedef NeoHookeMaterial<P1Basis> MaterialType; typedef NeoHookeMaterial<P1Basis> MaterialType;
...@@ -260,7 +260,7 @@ int main (int argc, char *argv[]) try ...@@ -260,7 +260,7 @@ int main (int argc, char *argv[]) try
// Create the materials // Create the materials
typedef P1NodalBasis<GridType2::LeafGridView> P1Basis2; typedef P1NodalBasis<GridType2::LeafGridView> P1Basis2;
P1Basis2 p1Basis2(grid2->leafView()); P1Basis2 p1Basis2(grid2->leafGridView());
// make a material // make a material
typedef NeoHookeMaterial<P1Basis2> MaterialType2; typedef NeoHookeMaterial<P1Basis2> MaterialType2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment