Skip to content
Snippets Groups Projects
Commit 41a79985 authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

Bugfix: the Neumann vector field enters the energy with a _negative_ sign

[[Imported from SVN: r9949]]
parent d8ff276d
Branches
No related tags found
No related merge requests found
......@@ -412,7 +412,7 @@ energy(const Entity& element,
// Only translational dofs are affected by the Neumann force
for (size_t i=0; i<neumannValue.size(); i++)
energy += thickness_ * (neumannValue[i] * value.r[i]) * quad[pt].weight() * integrationElement;
energy -= thickness_ * (neumannValue[i] * value.r[i]) * quad[pt].weight() * integrationElement;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment