]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Correct an indexing mistake that would have bitten us in the
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 2 Nov 2012 18:59:48 +0000 (18:59 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 2 Nov 2012 18:59:48 +0000 (18:59 +0000)
spacedim > dim case.

git-svn-id: https://svn.dealii.org/trunk@27318 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/fe/fe_values.h

index 1f43711b02eebafde82c0b880ab26ba534e28bbd..7e8e9f7c4c224e4c2daf308c897b800c0e97c5a0 100644 (file)
@@ -869,7 +869,7 @@ namespace FEValuesViews
                                             * (e.g. for RT elements it depends
                                             * on the shape of a cell).
                                             */
-          bool is_nonzero_shape_function_component[dim];
+          bool is_nonzero_shape_function_component[spacedim];
 
                                            /**
                                             * For each pair (shape function,
@@ -887,7 +887,7 @@ namespace FEValuesViews
                                             * harder to compute this
                                             * information.
                                             */
-          unsigned int row_index[dim];
+          unsigned int row_index[spacedim];
 
                                            /**
                                             * For each shape function say the

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.