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

bugfix: the matrix is squared, hence there is now variable 'm' holding the...

bugfix: the matrix is squared, hence there is now variable 'm' holding the number of columns.  Patch by Uli Sack

[[Imported from SVN: r1460]]
parent a6b137ed
No related branches found
No related tags found
No related merge requests found
......@@ -481,7 +481,7 @@ namespace Dune {
{
#ifdef DUNE_FMatrix_WITH_CHECKING
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");
if (j<0 || j>=n) DUNE_THROW(FMatrixError,"column index out of range");
#endif
return i==j;
}
......
......@@ -447,7 +447,7 @@ namespace Dune {
{
#ifdef DUNE_FMatrix_WITH_CHECKING
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");
if (j<0 || j>=n) DUNE_THROW(FMatrixError,"column index out of range");
#endif
return i==j;
}
......
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