Experimenting with least square vector correction: off

This commit is contained in:
Hrvoje Jasak 2015-04-24 14:11:11 +01:00
parent 7d149ebb2d
commit b3c099be07

View file

@ -30,7 +30,11 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // namespace Foam
{
defineTypeNameAndDebug(leastSquaresVectors, 0);
}
const Foam::scalar Foam::leastSquaresVectors::smallDotProdTol_ const Foam::scalar Foam::leastSquaresVectors::smallDotProdTol_
( (
@ -38,12 +42,6 @@ const Foam::scalar Foam::leastSquaresVectors::smallDotProdTol_
); );
namespace Foam
{
defineTypeNameAndDebug(leastSquaresVectors, 0);
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::leastSquaresVectors::leastSquaresVectors(const fvMesh& mesh) Foam::leastSquaresVectors::leastSquaresVectors(const fvMesh& mesh)
@ -221,6 +219,8 @@ void Foam::leastSquaresVectors::makeLeastSquaresVectors() const
} }
} }
# if 0
// Coefficient sign correction on least squares vectors // Coefficient sign correction on least squares vectors
// The sign of the coefficient must be positive to ensure correct // The sign of the coefficient must be positive to ensure correct
// behaviour in coupled systems. This is checked by evaluating // behaviour in coupled systems. This is checked by evaluating
@ -406,6 +406,8 @@ void Foam::leastSquaresVectors::makeLeastSquaresVectors() const
} }
} }
#endif
if (debug) if (debug)
{ {
Info<< "leastSquaresVectors::makeLeastSquaresVectors() :" Info<< "leastSquaresVectors::makeLeastSquaresVectors() :"