From: Alistair Bentley Date: Fri, 23 Jan 2015 06:30:33 +0000 (-0500) Subject: Changes sign of derivatives to match function changes. X-Git-Tag: v8.3.0-rc1~490^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35938c65670f28887b9732f6d6b08b40e61ff9c6;p=dealii.git Changes sign of derivatives to match function changes. --- 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