table2DThermophysicalFunction: Corrected pressure table index check

This commit is contained in:
Henry Weller
2020-09-14 11:57:19 +01:00
parent 3220c10f7a
commit 915b9d7221

View File

@ -87,7 +87,7 @@ inline void Foam::thermophysicalFunctions::table2D::checkRange
label iT
) const
{
if (ndp < 0 || ip > values_.n() - 2)
if (ndp < 0 || ip > values_.m() - 2)
{
FatalErrorInFunction
<< "Pressure " << p << " out of range "