From: Timo Heister Date: Thu, 5 Nov 2015 14:12:22 +0000 (-0500) Subject: remove contract() deprecation warning in step-9 X-Git-Tag: v8.4.0-rc2~248^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34e4c2a313babc589f468952f97d73a0dc4b099e;p=dealii.git remove contract() deprecation warning in step-9 --- diff --git a/examples/step-9/step-9.cc b/examples/step-9/step-9.cc index 8b6a8dd0d1..1919ffcea4 100644 --- a/examples/step-9/step-9.cc +++ b/examples/step-9/step-9.cc @@ -1297,8 +1297,7 @@ namespace Step9 // using this quantity and the right powers of the mesh width: const Tensor<2,dim> Y_inverse = invert(Y); - Tensor<1,dim> gradient; - contract (gradient, Y_inverse, projected_gradient); + Tensor<1,dim> gradient = Y_inverse * projected_gradient; // The last part of this function is the one where we // write into the element of the output vector what