]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Initialize variable.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 11 Dec 2008 20:47:13 +0000 (20:47 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 11 Dec 2008 20:47:13 +0000 (20:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@17915 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 4df1dd4db865e02f30490ab12fb8f31ea1590801..7db7168b74d13f09c9609315c056af5978d90df5 100644 (file)
@@ -3581,15 +3581,11 @@ namespace FEValuesViews
     if (snc == -2)
       return divergence_type();
     else if (snc != -1)
-      {
-       divergence_type return_value;
-       return_value
-         = fe_values.shape_gradients[snc][q_point][single_nonzero_component_index[shape_function]];
-       return return_value;
-      }
+      return
+       fe_values.shape_gradients[snc][q_point][single_nonzero_component_index[shape_function]];
     else
       {
-       divergence_type return_value;
+       divergence_type return_value = 0;
        for (unsigned int d=0; d<dim; ++d)    
          if (is_nonzero_shape_function_component(shape_function,d))
            return_value

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.