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

Assemble 1-function on frictional boundary once

parent ce0a18a6
No related branches found
No related tags found
No related merge requests found
......@@ -181,6 +181,11 @@ int main() {
VectorType u2 = u1;
VectorType f(grid.size(grid.maxLevel(), dim));
std::vector<Dune::FieldVector<double, 1>> nodalIntegrals;
assemble_frictional<GridType, GridType::LeafGridView, SmallVector, P1Basis>(
leafView, p1Basis, frictionalNodes, nodalIntegrals);
for (size_t run = 1; run <= runs; ++run) {
f = 0;
VectorType neumannTerm(grid.size(grid.maxLevel(), dim));
......@@ -189,11 +194,6 @@ int main() {
f += neumannTerm;
// {{{ Assemble terms for the nonlinearity
std::vector<Dune::FieldVector<double, 1>> nodalIntegrals;
assemble_frictional<GridType, GridType::LeafGridView, SmallVector,
P1Basis>(leafView, p1Basis, frictionalNodes,
nodalIntegrals);
// TODO: Random value
std::vector<double> normalStress;
normalStress.resize(grid.size(grid.maxLevel(), dim));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment