From: Daniel Arndt Date: Thu, 24 May 2018 11:42:46 +0000 (+0200) Subject: Fix base/slice_vector X-Git-Tag: v9.1.0-rc1~1102^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cb22711f2fbd2d5880131b8bce50c77c1c8ded4;p=dealii.git Fix base/slice_vector --- diff --git a/include/deal.II/base/vector_slice.h b/include/deal.II/base/vector_slice.h index d3d827aa7e..578c57d56e 100644 --- a/include/deal.II/base/vector_slice.h +++ b/include/deal.II/base/vector_slice.h @@ -187,8 +187,8 @@ VectorSlice::VectorSlice(VectorType &v, : v(v), start(start), length(length) { - Assert((start+length<=v.size()), - ExcIndexRange(length, 0, v.size()-start+1)); + Assert((start + length <= v.size()), + ExcIndexRange(length, 0, v.size() - start + 1)); } diff --git a/tests/base/slice_vector.debug.output b/tests/base/slice_vector.debug.output index 82fd3f52c0..6d0d859457 100644 --- a/tests/base/slice_vector.debug.output +++ b/tests/base/slice_vector.debug.output @@ -1,4 +1,4 @@ DEAL:: 0 1 2 0 1 2 3 DEAL:: 2 0 1 -DEAL::ExcIndexRange(length, 0, v.size()-start+1) +DEAL::ExcIndexRange(length, 0, v.size() - start + 1)