From fc4ee7928a24bc9b89549f20fbdc8726efbfceea Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 4 Feb 2015 21:54:29 -0600 Subject: [PATCH] Use the appropriate syntax to add points (the difference of points yields a Tensor<1,dim>). --- source/grid/grid_tools.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/grid/grid_tools.cc b/source/grid/grid_tools.cc index 87a550c93b..83cf76e6a6 100644 --- a/source/grid/grid_tools.cc +++ b/source/grid/grid_tools.cc @@ -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); } -- 2.39.5