Skip to content
Snippets Groups Projects
Commit a47001e3 authored by Oliver Sander's avatar Oliver Sander
Browse files

bugfix in exists()

[[Imported from SVN: r4758]]
parent 6317251a
No related branches found
No related tags found
No related merge requests found
......@@ -486,8 +486,8 @@ namespace Dune {
bool exists (size_type i, size_type j) const
{
#ifdef DUNE_FMatrix_WITH_CHECKING
if (i<0 || i>=n) DUNE_THROW(FMatrixError,"index out of range");
if (j<0 || i>=m) DUNE_THROW(FMatrixError,"index out of range");
if (i<0 || i>=n) DUNE_THROW(FMatrixError,"row index out of range");
if (j<0 || j>=m) DUNE_THROW(FMatrixError,"column index out of range");
#endif
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment