]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Update library to use new signature of outer_product
authorMatthias Maier <tamiko@43-1.org>
Tue, 15 Sep 2015 05:11:22 +0000 (00:11 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 15 Sep 2015 17:11:31 +0000 (12:11 -0500)
source/grid/tria_boundary.cc
source/numerics/derivative_approximation.cc

index 132c33381d0eff613bf96ac321de726589981d5f..27336e9bbf29d68611abd54565566a5e908fe2b4 100644 (file)
@@ -804,10 +804,9 @@ namespace internal
         for (unsigned int i=0; i<GeometryInfo<dim>::vertices_per_cell; ++i)
           for (unsigned int j=0; j<GeometryInfo<dim>::vertices_per_cell; ++j)
             {
-              Tensor<2,dim> tmp;
-              outer_product (tmp,
-                             GeometryInfo<dim>::d_linear_shape_function_gradient (xi, i),
-                             GeometryInfo<dim>::d_linear_shape_function_gradient (xi, j));
+              Tensor<2, dim> tmp = outer_product(
+                                     GeometryInfo<dim>::d_linear_shape_function_gradient(xi, i),
+                                     GeometryInfo<dim>::d_linear_shape_function_gradient(xi, j));
               H_k += (object->vertex(i) * object->vertex(j)) * tmp;
             }
 
index a9bca498b830e083ef0f4ba5a346ed6ce215786f..d9a7867ef715a8c279ef44be079c652549cb11aa 100644 (file)
@@ -87,7 +87,7 @@ namespace DerivativeApproximation
        * Likewise declare the data type that holds the derivative projected to a
        * certain directions.
        */
-      typedef double        ProjectedDerivative;
+      typedef Tensor<0,dim> ProjectedDerivative;
 
       /**
        * Given an FEValues object initialized to a cell, and a solution vector,
@@ -891,11 +891,7 @@ namespace DerivativeApproximation
                this_midpoint_value);
           projected_finite_difference /= distance;
 
-          typename DerivativeDescription::Derivative projected_derivative_update;
-          outer_product (projected_derivative_update,
-                         y,
-                         projected_finite_difference);
-          projected_derivative += projected_derivative_update;
+          projected_derivative += outer_product(y, projected_finite_difference);
         };
 
       // can we determine an

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.