diff --git a/src/thermophysicalModels/thermophysicalProperties/thermophysicalFunctions/nonUniformTable/nonUniformTableThermophysicalFunctionI.H b/src/thermophysicalModels/thermophysicalProperties/thermophysicalFunctions/nonUniformTable/nonUniformTableThermophysicalFunctionI.H index 0e72c640600c38e2fcf2f3777eb0804b17bdaf44..0b20fec8b233bf8c370a1232ebbf6116fe5f2c09 100644 --- a/src/thermophysicalModels/thermophysicalProperties/thermophysicalFunctions/nonUniformTable/nonUniformTableThermophysicalFunctionI.H +++ b/src/thermophysicalModels/thermophysicalProperties/thermophysicalFunctions/nonUniformTable/nonUniformTableThermophysicalFunctionI.H @@ -37,7 +37,7 @@ inline Foam::label Foam::nonUniformTable::index ) const { scalar nd = 0; - if (T > Trange_.min() || T < Trange_.max()) + if (T > Trange_.min() && T < Trange_.max()) { nd = (T - Trange_.min())/deltaT_; }