Skip to content
Snippets Groups Projects
Commit 8bc3cec8 authored by Lisa Julia Nebel's avatar Lisa Julia Nebel
Browse files

Correct the calculation of the derivative of a LocalProjectedFEFunction for the general case

parent d9f896dd
No related branches found
No related tags found
1 merge request!78Fix the use of projection-based finite elements in cosserat-continuum
......@@ -152,17 +152,7 @@ namespace Dune {
auto derivativeOfProjection = TargetSpace::derivativeOfProjection(embeddedInterpolation);
typename LocalProjectedFEFunction<dim,ctype,LocalFiniteElement,TargetSpace>::DerivativeType result;
for (size_t i=0; i<result.N(); i++)
for (size_t j=0; j<result.M(); j++)
{
result[i][j] = 0;
for (size_t k=0; k<derivativeOfProjection.M(); k++)
result[i][j] += derivativeOfProjection[i][k]*derivative[k][j];
}
return result;
return derivativeOfProjection*derivative;
}
/** \brief Interpolate in an embedding Euclidean space, and project back onto the Riemannian manifold -- specialization for SO(3)
......
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