From a47001e31b88307c87a370f200a34d92030b8bfb Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@dune-project.org> Date: Thu, 26 Oct 2006 13:14:37 +0000 Subject: [PATCH] bugfix in exists() [[Imported from SVN: r4758]] --- common/fmatrix.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/fmatrix.hh b/common/fmatrix.hh index aa9bcbfd6..78d76aac5 100644 --- a/common/fmatrix.hh +++ b/common/fmatrix.hh @@ -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; } -- GitLab