From: Martin Kronbichler Date: Thu, 19 Feb 2015 07:50:40 +0000 (+0100) Subject: More Point vs Tensor fixes X-Git-Tag: v8.3.0-rc1~445^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d2c1f1299e33bd269fbcc1295643aabb1fde4b7;p=dealii.git More Point vs Tensor fixes --- diff --git a/examples/step-34/step-34.cc b/examples/step-34/step-34.cc index b0ee9e921c..09641afb9d 100644 --- a/examples/step-34/step-34.cc +++ b/examples/step-34/step-34.cc @@ -103,13 +103,13 @@ namespace Step34 switch (dim) { case 2: - return R / ( -2*numbers::PI * R.square()); + return R / ( -2*numbers::PI * R.norm_square()); case 3: - return R / ( -4*numbers::PI * R.square() * R.norm() ); + return R / ( -4*numbers::PI * R.norm_square() * R.norm() ); default: Assert(false, ExcInternalError()); - return Point(); + return Tensor<1,dim>(); } } }