From 9d2c1f1299e33bd269fbcc1295643aabb1fde4b7 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Thu, 19 Feb 2015 08:50:40 +0100 Subject: [PATCH] More Point vs Tensor fixes --- examples/step-34/step-34.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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>(); } } } -- 2.39.5