]> https://gitweb.dealii.org/ - dealii.git/commit
Extend the error message for ExcIndexRange. 914/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 7 May 2015 22:57:04 +0000 (17:57 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 7 May 2015 22:57:04 +0000 (17:57 -0500)
commit9531ad3bb6f6ea765a8f87feafb64d2223ff80f0
treee3ca17d13576cac3b4214ec71df620fbd2761405
parent9a3667446a7717d45a385d1b3e27b70c6513e5b5
Extend the error message for ExcIndexRange.

I must have had half a dozen students this semester who were unable to
decipher what this error message really means:

An error occurred in line <1183> of file
<../include/deal.II/lac/vector.h> in function
    Number &dealii::Vector<double>::operator()(const size_type) [number
= double]
The violated condition was:
    i<vec_size
The name and call sequence of the exception was:
    ExcIndexRangeType<size_type>(i,0,vec_size)
Additional Information:
Index 0 is not in [0,0[

This commit simply provides them with some more information.
include/deal.II/base/exceptions.h

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.