]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid compiler warning
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 21 Feb 2014 19:01:30 +0000 (19:01 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 21 Feb 2014 19:01:30 +0000 (19:01 +0000)
git-svn-id: https://svn.dealii.org/trunk@32528 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/matrix_free/fe_evaluation.h

index 141ebe579eaa04564106e3dcba794e0f5883b838..c57c8ad1e77dd97616560423e0d484aec2fcf043 100644 (file)
@@ -5041,7 +5041,7 @@ namespace internal
       {
         for (int i1=0; i1<n_blocks1; ++i1)
           {
-            Number xp[mid], xm[mid];
+            Number xp[mid>0?mid:1], xm[mid>0?mid:1];
             for (int i=0; i<mid; ++i)
               {
                 if (dof_to_quad == true && type == 1)

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.