#1294 DUNE_THROW seems not to be working for matrix.hh and no checking done for operator* overloading
Metadata
Property | Value |
---|---|
Reported by | Tilak Raj Singh (tilak72@gmail.com) |
Reported at | Apr 30, 2013 21:05 |
Type | Bug Report |
Version | 2.2 |
Operating System | Linux |
Last edited by | Tilak Raj Singh (tilak72@gmail.com) |
Last edited at | May 3, 2013 13:58 |
Closed by | Tilak Raj Singh (tilak72@gmail.com) |
Closed at | May 3, 2013 13:58 |
Closed in version | Unknown |
Resolution | Not a bug |
Comment |
Description
In matrix.hh DUNE_THROW seems to be not working. It doesnt check any of the errors in various operator overloaded functions.
I had to comment out #ifdef DUNE_ISTL_WITH_CHECKING and #endif for it to work but even after that it does not display the message passed using DUNE_THROW.
I tried adding two matrices of sizes [10][10] and [9][9] after commenting the above specified lines and I got the error
"terminate called after throwing an instance of 'Dune::RangeError'
/bin/bash: line 5: 4886 Aborted (core dumped) {dir}
tst"
It doesnt seem to print the message.
Also there is no checking done sizes of matrices in operator*
I propose the following patch...