]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use the appropriate syntax to add points (the difference of points yields a Tensor...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 5 Feb 2015 03:54:29 +0000 (21:54 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 5 Feb 2015 03:54:29 +0000 (21:54 -0600)
source/grid/grid_tools.cc

index 87a550c93be25c76b9905bef60c23e6069f27c22..83cf76e6a6ad7db903ebedc556cdbfdc95d570e2 100644 (file)
@@ -2170,7 +2170,7 @@ next_cell:
                   gradient[d]
                     = ((objective_function (object, object_mid_point + h)
                         -
-                        objective_function (object, object_mid_point - h))
+                        objective_function (object, object_mid_point + (-h)))
                        /
                        eps);
                 else
@@ -2181,7 +2181,7 @@ next_cell:
                         -
                         objective_function (object,
                                             manifold->project_to_surface(object,
-                                                                         object_mid_point - h)))
+                                                                         object_mid_point + (-h))))
                        /
                        eps);
               }

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.