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

Declare f outside the loop of runs

parent ec6b5235
No related branches found
No related tags found
No related merge requests found
...@@ -180,8 +180,8 @@ int main() { ...@@ -180,8 +180,8 @@ int main() {
u1 = 0; u1 = 0;
VectorType u2 = u1; VectorType u2 = u1;
VectorType f(grid.size(grid.maxLevel(), dim));
for (size_t run = 1; run <= runs; ++run) { for (size_t run = 1; run <= runs; ++run) {
VectorType f(grid.size(grid.maxLevel(), dim));
f = 0; f = 0;
VectorType neumannTerm(grid.size(grid.maxLevel(), dim)); VectorType neumannTerm(grid.size(grid.maxLevel(), dim));
assemble_neumann<GridType, GridType::LeafGridView, SmallVector, P1Basis>( assemble_neumann<GridType, GridType::LeafGridView, SmallVector, P1Basis>(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment