Commit 06384382 authored by akbib's avatar akbib Committed by akbib@FU-BERLIN.DE
Browse files

bugfix in linearisedDefDet: index was computed wrong

[[Imported from SVN: r11291]]
parent b8fb1fe2
......@@ -5,6 +5,8 @@
#include <dune/common/fmatrix.hh>
#include <dune/fufem/symmetrictensor.hh>
namespace Dune {
namespace Elasticity {
......@@ -133,7 +135,7 @@ namespace Dune {
linDet = 0;
for (int i=0; i<2; i++)
for (int j=(i+1)%3; j<3; j++) {
int k=(j+1)%3 + (j+1)/3;
int k=(-(i+j))%3;
linDet[i][j] = u[j][k]*u[k][i] - u[j][i]*(1+u[k][k]);
linDet[j][i] = u[k][j]*u[i][k] - u[i][j]*(1+u[k][k]);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment