Skip to content
Snippets Groups Projects
Commit 902f333b authored by Andrew Heather's avatar Andrew Heather
Browse files

BUG: VectorSpaceI.H - corrected invalid code

parent c499de99
No related branches found
No related tags found
No related merge requests found
......@@ -239,11 +239,11 @@ inline const Cmpt&
VectorSpace<Form, Cmpt, Ncmpts>::
ConstBlock<SubVector, BStart>::operator[]
(
const direction i
const direction d
) const
{
#ifdef FULLDEBUG
if (i >= Ncmpts)
if (d >= Ncmpts)
{
FatalErrorInFunction
<< "index " << d << " out of range"
......@@ -251,7 +251,7 @@ ConstBlock<SubVector, BStart>::operator[]
}
#endif
return vs_[BStart + i];
return vs_[BStart + d];
}
......@@ -269,7 +269,7 @@ ConstBlock<SubVector, BStart>::operator()
if (i >= Ncmpts)
{
FatalErrorInFunction
<< "index " << d << " out of range"
<< "index " << i << " out of range"
<< abort(FatalError);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment