]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix base/slice_vector
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 24 May 2018 11:42:46 +0000 (13:42 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 24 May 2018 13:33:11 +0000 (15:33 +0200)
include/deal.II/base/vector_slice.h
tests/base/slice_vector.debug.output

index d3d827aa7eac8a576f28d5d6299064ca4df342e4..578c57d56e6b4c7cab7ec35a8acfd401ce1ce8f8 100644 (file)
@@ -187,8 +187,8 @@ VectorSlice<VectorType>::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));
 }
 
 
index 82fd3f52c098881ae2cb6a8099392a24361fd91c..6d0d859457985f5b81499e493e6a9673fa21db61 100644 (file)
@@ -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)

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.