]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid an internal compiler error in gcc 7.4.0.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 30 Jan 2020 16:38:49 +0000 (09:38 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 30 Jan 2020 16:38:49 +0000 (09:38 -0700)
include/deal.II/matrix_free/matrix_free.templates.h

index 63494acee64f7b5982b069dc0588b29220a7aa6e..3d744688b9cb21a2735d3ef55d9151c9386a0ab0 100644 (file)
@@ -1794,9 +1794,14 @@ MatrixFree<dim, Number, VectorizedArrayType>::initialize_indices(
                            const unsigned int v,
                            const bool         ext,
                            const bool         flag) {
-                    AssertIndexRange(face_info.faces[f].cells_interior[v],
-                                     n_macro_cells_before *
-                                       VectorizedArrayType::n_array_elements);
+                    Assert(
+                      face_info.faces[f].cells_interior[v] <
+                        n_macro_cells_before *
+                          VectorizedArrayType::n_array_elements,
+                      ExcIndexRange(face_info.faces[f].cells_interior[v],
+                                    0,
+                                    n_macro_cells_before *
+                                      VectorizedArrayType::n_array_elements));
                     if (flag ||
                         (di.index_storage_variants
                              [ext ? internal::MatrixFreeFunctions::DoFInfo::

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.