Skip to content
Snippets Groups Projects
Commit 726ce59b authored by sergio's avatar sergio
Browse files

BUG: Checking range of Tmin and Tmax. Fixes #2506

parent 37bb5b68
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ inline Foam::label Foam::nonUniformTable::index ...@@ -37,7 +37,7 @@ inline Foam::label Foam::nonUniformTable::index
) const ) const
{ {
scalar nd = 0; scalar nd = 0;
if (T > Trange_.min() || T < Trange_.max()) if (T > Trange_.min() && T < Trange_.max())
{ {
nd = (T - Trange_.min())/deltaT_; nd = (T - Trange_.min())/deltaT_;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment