From 35938c65670f28887b9732f6d6b08b40e61ff9c6 Mon Sep 17 00:00:00 2001 From: Alistair Bentley Date: Fri, 23 Jan 2015 01:30:33 -0500 Subject: [PATCH] Changes sign of derivatives to match function changes. --- source/base/polynomials_bdm.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source/base/polynomials_bdm.cc b/source/base/polynomials_bdm.cc index 1700b16dcb..e4deadea47 100644 --- a/source/base/polynomials_bdm.cc +++ b/source/base/polynomials_bdm.cc @@ -126,10 +126,10 @@ PolynomialsBDM::compute (const Point &unit_point, grads[start][0][1] = 0.; grads[start][1][0] = -unit_point(1) * monovali[0][2]; grads[start][1][1] = -monovali[0][1]; - grads[start+1][0][0] = -monovali[1][1]; - grads[start+1][0][1] = -unit_point(0) * monovali[1][2]; + grads[start+1][0][0] = monovali[1][1]; + grads[start+1][0][1] = unit_point(0) * monovali[1][2]; grads[start+1][1][0] = 0.; - grads[start+1][1][1] = monovali[1][1]; + grads[start+1][1][1] = -monovali[1][1]; } if (grad_grads.size() != 0) { @@ -142,13 +142,13 @@ PolynomialsBDM::compute (const Point &unit_point, grad_grads[start][1][1][0] = -monovali[0][2]; grad_grads[start][1][1][1] = 0.; grad_grads[start+1][0][0][0] = 0; - grad_grads[start+1][0][0][1] = -monovali[1][2]; - grad_grads[start+1][0][1][0] = -monovali[1][2]; - grad_grads[start+1][0][1][1] = -unit_point(0) * monovali[1][3]; + grad_grads[start+1][0][0][1] = monovali[1][2]; + grad_grads[start+1][0][1][0] = monovali[1][2]; + grad_grads[start+1][0][1][1] = unit_point(0) * monovali[1][3]; grad_grads[start+1][1][0][0] = 0.; grad_grads[start+1][1][0][1] = 0.; grad_grads[start+1][1][1][0] = 0.; - grad_grads[start+1][1][1][1] = monovali[1][2]; + grad_grads[start+1][1][1][1] = -monovali[1][2]; } } else // dim == 3 -- 2.39.5