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

Cleanup after previous patch: 'nblocks' has been renamed to 'rows_'

I missed a few occurrences of 'nblocks' when renaming that to 'rows_',
because it was hidden behind the DUNE_ISTL_WITH_CHECKING macro.
parent 16ceb698
No related branches found
No related tags found
No related merge requests found
......@@ -235,7 +235,7 @@ namespace MatrixImp
reference operator[] (size_type i)
{
#ifdef DUNE_ISTL_WITH_CHECKING
if (i>=nblocks) DUNE_THROW(ISTLError,"index out of range");
if (i>=rows_) DUNE_THROW(ISTLError,"index out of range");
#endif
return window_type(this->p + i*columns_, columns_);
}
......@@ -244,7 +244,7 @@ namespace MatrixImp
const_reference operator[] (size_type i) const
{
#ifdef DUNE_ISTL_WITH_CHECKING
if (i<0 || i>=nblocks) DUNE_THROW(ISTLError,"index out of range");
if (i<0 || i>=rows_) DUNE_THROW(ISTLError,"index out of range");
#endif
return window_type(this->p + i*columns_, columns_);
}
......
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