Skip to content
Snippets Groups Projects
Commit 3fa3365e authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Move declarations around

parent 5feeabd1
No related branches found
No related tags found
No related merge requests found
...@@ -185,16 +185,6 @@ int main() { ...@@ -185,16 +185,6 @@ int main() {
u1 = 0; u1 = 0;
VectorType u2 = u1; VectorType u2 = u1;
// TODO: populate on S_F
std::vector<double> coefficientOfFriction;
coefficientOfFriction.resize(grid.size(grid.maxLevel(), dim));
std::fill(coefficientOfFriction.begin(), coefficientOfFriction.end(), 0.0);
// TODO: populate on S_F
std::vector<double> normalStress;
normalStress.resize(grid.size(grid.maxLevel(), dim));
std::fill(normalStress.begin(), normalStress.end(), 0.0);
VectorType f(grid.size(grid.maxLevel(), dim)); VectorType f(grid.size(grid.maxLevel(), dim));
assemble_neumann<GridType, SmallVector, P1Basis>(grid, p1Basis, assemble_neumann<GridType, SmallVector, P1Basis>(grid, p1Basis,
neumannNodes, f); neumannNodes, f);
...@@ -215,6 +205,17 @@ int main() { ...@@ -215,6 +205,17 @@ int main() {
frictionalBoundaryAssembler, nodalIntegrals, frictionalBoundaryAssembler, nodalIntegrals,
true); // resize the output vector and zero all of its entries true); // resize the output vector and zero all of its entries
// TODO: populate on S_F
std::vector<double> normalStress;
normalStress.resize(grid.size(grid.maxLevel(), dim));
std::fill(normalStress.begin(), normalStress.end(), 0.0);
// TODO: populate on S_F
std::vector<double> coefficientOfFriction;
coefficientOfFriction.resize(grid.size(grid.maxLevel(), dim));
std::fill(coefficientOfFriction.begin(), coefficientOfFriction.end(),
0.0);
Dune::GlobalNonlinearity<dim, Dune::LinearFunction> myGlobalNonlinearity( Dune::GlobalNonlinearity<dim, Dune::LinearFunction> myGlobalNonlinearity(
coefficientOfFriction, normalStress, nodalIntegrals); coefficientOfFriction, normalStress, nodalIntegrals);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment