postProcessing::noise: Improved robustness of the uniform time-step check

This commit is contained in:
Henry Weller
2019-10-31 14:48:31 +00:00
parent 640027e73a
commit c1820f19d3

View File

@ -98,13 +98,13 @@ Foam::scalar checkUniformTimeStep(const scalarField& t)
{
for (label i = 1; i < t.size(); i++)
{
scalar dT = t[i] - t[i-1];
const scalar dT = t[i] - t[i-1];
if (deltaT < 0)
{
deltaT = dT;
}
if (mag(deltaT - dT) > small)
if (mag(deltaT - dT) > rootSmall)
{
FatalErrorInFunction
<< "Unable to process data with a variable time step"