From: Wolfgang Bangerth Date: Wed, 18 Feb 2015 19:42:32 +0000 (-0600) Subject: More Point vs Tensor fixes. X-Git-Tag: v8.3.0-rc1~446^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0eab3efc8d001324ef782e2f8be00ad60e70184;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 ac98200604..b0ee9e921c 100644 --- a/examples/step-34/step-34.cc +++ b/examples/step-34/step-34.cc @@ -1,6 +1,6 @@ /* --------------------------------------------------------------------- * - * Copyright (C) 2009 - 2014 by the deal.II authors + * Copyright (C) 2009 - 2015 by the deal.II authors * * This file is part of the deal.II library. * @@ -79,7 +79,7 @@ namespace Step34 namespace LaplaceKernel { template - double single_layer(const Point &R) + double single_layer(const Tensor<1,dim> &R) { switch (dim) { @@ -98,7 +98,7 @@ namespace Step34 template - Point double_layer(const Point &R) + Tensor<1,dim> double_layer(const Tensor<1,dim> &R) { switch (dim) { @@ -638,7 +638,7 @@ namespace Step34 for (unsigned int d=0; d R = q_points[q] - support_points[i]; + const Tensor<1,dim> R = q_points[q] - support_points[i]; system_rhs(i) += ( LaplaceKernel::single_layer(R) * normal_wind * @@ -692,7 +692,7 @@ namespace Step34 for (unsigned int q=0; q R = singular_q_points[q] - support_points[i]; + const Tensor<1,dim> R = singular_q_points[q] - support_points[i]; double normal_wind = 0; for (unsigned int d=0; d R = q_points[q] - external_support_points[i]; + const Tensor<1,dim> R = q_points[q] - external_support_points[i]; external_phi(i) += ( ( LaplaceKernel::single_layer(R) * normal_wind[q]