From: Wolfgang Bangerth Date: Mon, 30 Oct 2017 23:04:40 +0000 (-0600) Subject: Simplify code a bit. X-Git-Tag: v9.0.0-rc1~837^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca1aef92e89d986fff95b153db44395f63a1499b;p=dealii.git Simplify code a bit. --- diff --git a/include/deal.II/numerics/vector_tools.templates.h b/include/deal.II/numerics/vector_tools.templates.h index 54cff879a5..67f9375c07 100644 --- a/include/deal.II/numerics/vector_tools.templates.h +++ b/include/deal.II/numerics/vector_tools.templates.h @@ -114,7 +114,7 @@ namespace VectorTools // reinit()'d for the current cell // function_values, offset: function_values is manipulated in place // starting at position offset - template + template void transform(const typename FiniteElementData::Conformity conformity, const unsigned int offset, T2 &fe_values_jacobians, @@ -136,7 +136,7 @@ namespace VectorTools auto shifted_view = boost::make_iterator_range( std::begin(function_values[i]) + offset, std::begin(function_values[i]) + offset + dim); - std::array old_value; + std::array old_value; std::copy(std::begin(shifted_view), std::end(shifted_view), std::begin(old_value)); @@ -164,7 +164,7 @@ namespace VectorTools auto shifted_view = boost::make_iterator_range( std::begin(function_values[i]) + offset, std::begin(function_values[i]) + offset + dim); - std::array old_value; + std::array old_value; std::copy(std::begin(shifted_view), std::end(shifted_view), std::begin(old_value)); @@ -206,7 +206,7 @@ namespace VectorTools // [ rest see above] // Output: the offset after we have handled the element at // a given offset - template + template unsigned int apply_transform(const FiniteElement &fe, const unsigned int offset, @@ -228,20 +228,20 @@ namespace VectorTools // recursively call apply_transform to make sure to // correctly handle nested fe systems. current_offset = - apply_transform(base_fe, - current_offset, - fe_values_jacobians, - function_values); + apply_transform(base_fe, + current_offset, + fe_values_jacobians, + function_values); } } return current_offset; } else { - transform(fe.conforming_space, - offset, - fe_values_jacobians, - function_values); + transform(fe.conforming_space, + offset, + fe_values_jacobians, + function_values); return (offset + fe.n_components()); } } @@ -652,9 +652,8 @@ namespace VectorTools // every base element. const unsigned int offset = - apply_transform( - fe[fe_index], /* starting_offset = */ 0, - fe_values, function_values); + apply_transform(fe[fe_index], /* starting_offset = */ 0, + fe_values, function_values); (void)offset; Assert(offset == n_components, ExcInternalError()); }