]> https://gitweb.dealii.org/ - dealii.git/commitdiff
More Point vs Tensor fixes. 568/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 18 Feb 2015 19:42:32 +0000 (13:42 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 18 Feb 2015 19:42:32 +0000 (13:42 -0600)
examples/step-34/step-34.cc

index ac98200604c460eddc4a33ee053704600e96f50f..b0ee9e921ca607c4500109dfce4627903956d4f8 100644 (file)
@@ -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 <int dim>
-    double single_layer(const Point<dim> &R)
+    double single_layer(const Tensor<1,dim> &R)
     {
       switch (dim)
         {
@@ -98,7 +98,7 @@ namespace Step34
 
 
     template <int dim>
-    Point<dim> double_layer(const Point<dim> &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<dim; ++d)
                       normal_wind += normals[q][d]*cell_wind[q](d);
 
-                    const Point<dim> 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<singular_quadrature.size(); ++q)
                   {
-                    const Point<dim> 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<dim; ++d)
                       normal_wind += (singular_cell_wind[q](d)*
@@ -974,7 +974,7 @@ namespace Step34
           for (unsigned int q=0; q<n_q_points; ++q)
             {
 
-              const Point<dim> 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]

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.