]> https://gitweb.dealii.org/ - dealii.git/commitdiff
remove contract() deprecation warning in step-9
authorTimo Heister <timo.heister@gmail.com>
Thu, 5 Nov 2015 14:12:22 +0000 (09:12 -0500)
committerTimo Heister <timo.heister@gmail.com>
Thu, 5 Nov 2015 14:12:22 +0000 (09:12 -0500)
examples/step-9/step-9.cc

index 8b6a8dd0d13138a65ccc185555a4e79f51314727..1919ffcea4d13fb34b2056fd3e4c386a31e228df 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.