Skip to content
Snippets Groups Projects
Commit c869e3d8 authored by Christian Engwer's avatar Christian Engwer
Browse files

Improve ErrorMessage

[[Imported from SVN: r6558]]
parent 1895a4fa
Branches
Tags
No related merge requests found
......@@ -401,8 +401,10 @@ namespace Dune
void umv (const X& x, Y& y) const
{
#ifdef DUNE_FMatrix_WITH_CHECKING
if (x.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
if (y.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
if (x.N()!=M())
DUNE_THROW(FMatrixError,"y += A x -- index out of range (sizes: x: " << x.N() << ", y: " << y.N() << ", A: " << this->N() << " x " << this->M() << ")" << std::endl);
if (y.N()!=N())
DUNE_THROW(FMatrixError,"y += A x -- index out of range (sizes: x: " << x.N() << ", y: " << y.N() << ", A: " << this->N() << " x " << this->M() << ")" << std::endl);
#endif
for (size_type i=0; i<rows(); i++)
for (size_type j=0; j<cols(); j++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment