From 34e4c2a313babc589f468952f97d73a0dc4b099e Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Thu, 5 Nov 2015 09:12:22 -0500 Subject: [PATCH] remove contract() deprecation warning in step-9 --- examples/step-9/step-9.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.39.5