From 01ab1a86d6229f08d5957afaa690577680fab451 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 1 Nov 2016 16:23:30 +0100 Subject: [PATCH] Fix ShapeInfo for DG elements in 1d --- include/deal.II/matrix_free/shape_info.templates.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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: -- 2.39.5