From: Wolfgang Bangerth Date: Tue, 9 Feb 1999 20:02:31 +0000 (+0000) Subject: Fix bug with a bilinear finite element returning zero for all its X-Git-Tag: v8.0.0~22481 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d418e0eedbd945d36a9738414a39983001deb98a;p=dealii.git Fix bug with a bilinear finite element returning zero for all its second derivatives on the unit cell, which surely is not right. git-svn-id: https://svn.dealii.org/trunk@776 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/fe/fe_lib.linear.cc b/deal.II/deal.II/source/fe/fe_lib.linear.cc index c0ad349751..8382901fd2 100644 --- a/deal.II/deal.II/source/fe/fe_lib.linear.cc +++ b/deal.II/deal.II/source/fe/fe_lib.linear.cc @@ -289,6 +289,23 @@ FELinear<2>::shape_grad_grad (const unsigned int i, { Assert((i(initializer); + }; + + case 1: + case 3: + { + const double initializer[2][2] = {{0, -1},{-1,0}}; + return Tensor<2,2>(initializer); + }; + }; + return Tensor<2,2>(); };