From: maier Date: Mon, 8 Apr 2013 18:49:48 +0000 (+0000) Subject: Well, do it correctly. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de237fbd7c75aae389a5e83ff9475f31952c2c4a;p=dealii-svn.git Well, do it correctly. git-svn-id: https://svn.dealii.org/trunk@29221 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/numerics/vector_tools.templates.h b/deal.II/include/deal.II/numerics/vector_tools.templates.h index 33bde2ad2f..01b12b9a27 100644 --- a/deal.II/include/deal.II/numerics/vector_tools.templates.h +++ b/deal.II/include/deal.II/numerics/vector_tools.templates.h @@ -5645,18 +5645,14 @@ namespace VectorTools Assert(p_select.size() == 0 || p_select.size() == n, ExcDimensionMismatch(p_select.size(), n)); - typename VECTOR::value_type s = 0.; - if(p_select.size() == 0) { // In case of an empty boolean mask operate on the whole vector: - for (unsigned int i=0; i