]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix ShapeInfo for DG elements in 1d 3336/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 1 Nov 2016 15:23:30 +0000 (16:23 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 1 Nov 2016 15:23:30 +0000 (16:23 +0100)
include/deal.II/matrix_free/shape_info.templates.h

index b49ded7650df68359a563437e01d5f9d654ca7cc..2361beccd501bb916a433b781591d0a083a11891 100644 (file)
@@ -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:

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.