From b0eab3efc8d001324ef782e2f8be00ad60e70184 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 18 Feb 2015 13:42:32 -0600 Subject: [PATCH] More Point vs Tensor fixes. --- examples/step-34/step-34.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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] -- 2.39.5