From: bangerth Date: Thu, 11 Dec 2008 20:47:13 +0000 (+0000) Subject: Initialize variable. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10ee7b335d7d979a4a0d195d6faf8503e2f97b56;p=dealii-svn.git Initialize variable. git-svn-id: https://svn.dealii.org/trunk@17915 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/fe/fe_values.h b/deal.II/deal.II/include/fe/fe_values.h index 4df1dd4db8..7db7168b74 100644 --- a/deal.II/deal.II/include/fe/fe_values.h +++ b/deal.II/deal.II/include/fe/fe_values.h @@ -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