Skip to content
Snippets Groups Projects
Commit 45b875b6 authored by Henry Weller's avatar Henry Weller
Browse files

Removed unnecessary "else if" conditions

parent 4c9eb4c2
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -227,4 +205,5 @@ namespace Foam
makelimitedSurfaceInterpolationTypeScheme(linearUpwindV, vector) makelimitedSurfaceInterpolationTypeScheme(linearUpwindV, vector)
} }
// ************************************************************************* // // ************************************************************************* //
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment