Removed unnecessary "else if" conditions

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1858
This commit is contained in:
Henry Weller
2015-09-28 22:18:39 +01:00
parent 4c9eb4c2e9
commit 45b875b65d

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -125,17 +125,6 @@ Foam::linearUpwindV<Type>::correction
sfCorr[facei] *= maxCorrs/(sfCorrs + VSMALL); sfCorr[facei] *= maxCorrs/(sfCorrs + VSMALL);
} }
} }
else if (sfCorrs < 0)
{
if (maxCorrs > 0)
{
sfCorr[facei] = vector::zero;
}
else if (sfCorrs < maxCorrs)
{
sfCorr[facei] *= maxCorrs/(sfCorrs - VSMALL);
}
}
} }
@ -203,17 +192,6 @@ Foam::linearUpwindV<Type>::correction
pSfCorr[facei] *= maxCorrs/(pSfCorrs + VSMALL); pSfCorr[facei] *= maxCorrs/(pSfCorrs + VSMALL);
} }
} }
else if (pSfCorrs < 0)
{
if (maxCorrs > 0)
{
pSfCorr[facei] = vector::zero;
}
else if (pSfCorrs < maxCorrs)
{
pSfCorr[facei] *= maxCorrs/(pSfCorrs - VSMALL);
}
}
} }
} }
} }
@ -227,4 +205,5 @@ namespace Foam
makelimitedSurfaceInterpolationTypeScheme(linearUpwindV, vector) makelimitedSurfaceInterpolationTypeScheme(linearUpwindV, vector)
} }
// ************************************************************************* // // ************************************************************************* //