Skip to content
Snippets Groups Projects
Commit 8a0c03dc authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Use more 'auto'

parent eb4548e9
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -110,11 +110,11 @@ public:
LocalInterpolationRule localInterpolationRule(localView.tree().finiteElement(),localCoeff);
// use it to evaluate the derivative
Dune::FieldMatrix<ctype, embeddedDim, gridDim> refJac = localInterpolationRule.evaluateDerivative(local);
auto refJac = localInterpolationRule.evaluateDerivative(local);
Dune::FieldMatrix<ctype, embeddedDim, gridDim> out =0.0;
decltype(refJac) out =0.0;
//transform the gradient
const Dune::FieldMatrix<double,gridDim,gridDim>& jacInvTrans = element.geometry().jacobianInverseTransposed(local);
const auto jacInvTrans = element.geometry().jacobianInverseTransposed(local);
for (size_t k=0; k< refJac.N(); k++)
jacInvTrans.umv(refJac[k],out[k]);
......
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