From 8a0c03dcab0d7784b2fa0a0c8dd9c3d84a1f2624 Mon Sep 17 00:00:00 2001 From: Oliver Sander <oliver.sander@tu-dresden.de> Date: Thu, 12 May 2016 15:35:40 +0200 Subject: [PATCH] Use more 'auto' --- dune/gfe/embeddedglobalgfefunction.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dune/gfe/embeddedglobalgfefunction.hh b/dune/gfe/embeddedglobalgfefunction.hh index 4fc27335..cc79ec3e 100644 --- a/dune/gfe/embeddedglobalgfefunction.hh +++ b/dune/gfe/embeddedglobalgfefunction.hh @@ -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]); -- GitLab