mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: VectorSpaceI.H - corrected invalid code
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user