Skip to content
Snippets Groups Projects
Commit fa044ef9 authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

bugfix: missing identity matrix in the longQuadraticMembraneEnergy

[[Imported from SVN: r8307]]
parent d0c14822
No related branches found
No related tags found
No related merge requests found
......@@ -161,7 +161,7 @@ public:
Dune::FieldMatrix<double,dim-1,dim-1> sym2x2;
for (int i=0; i<dim-1; i++)
for (int j=0; j<dim-1; j++)
sym2x2[i][j] = 0.5 * (U[i][j] + U[j][i]);
sym2x2[i][j] = 0.5 * (U[i][j] + U[j][i]) - (i==j);
result += mu_ * sym2x2.frobenius_norm2();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment