From: Daniel Arndt Date: Tue, 1 Nov 2016 15:23:30 +0000 (+0100) Subject: Fix ShapeInfo for DG elements in 1d X-Git-Tag: v8.5.0-rc1~512^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01ab1a86d6229f08d5957afaa690577680fab451;p=dealii.git Fix ShapeInfo for DG elements in 1d --- diff --git a/include/deal.II/matrix_free/shape_info.templates.h b/include/deal.II/matrix_free/shape_info.templates.h index b49ded7650..2361beccd5 100644 --- a/include/deal.II/matrix_free/shape_info.templates.h +++ b/include/deal.II/matrix_free/shape_info.templates.h @@ -245,8 +245,11 @@ namespace internal } case 1: { - this->face_indices(0,0) = 0; - this->face_indices(1,0) = n_dofs_1d-1; + if (this->dofs_per_face>0) + { + this->face_indices(0,0) = 0; + this->face_indices(1,0) = n_dofs_1d-1; + } break; } default: