mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: EigenMatrix: remove unused iter variable
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2020 OpenCFD Ltd.
|
Copyright (C) 2020-2022 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is derivative work of OpenFOAM.
|
This file is derivative work of OpenFOAM.
|
||||||
@ -49,20 +49,6 @@ using namespace Foam;
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// Return the absolute tolerance value for bitwise comparisons of floatScalars
|
|
||||||
floatScalar getTol(floatScalar)
|
|
||||||
{
|
|
||||||
return 1e-2;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Return the absolute tolerance value for bitwise comparisons of doubleScalars
|
|
||||||
doubleScalar getTol(doubleScalar)
|
|
||||||
{
|
|
||||||
return 1e-10;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Create each constructor of EigenMatrix<Type>, and print output
|
// Create each constructor of EigenMatrix<Type>, and print output
|
||||||
template<class Type>
|
template<class Type>
|
||||||
void test_constructors(Type)
|
void test_constructors(Type)
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
Contributed 2018-07-31 to the OpenFOAM Foundation
|
Contributed 2018-07-31 to the OpenFOAM Foundation
|
||||||
Copyright (C) 2018 OpenFOAM Foundation
|
Copyright (C) 2018 OpenFOAM Foundation
|
||||||
Copyright (C) 2019-2020 Alberto Passalacqua
|
Copyright (C) 2019-2020 Alberto Passalacqua
|
||||||
Copyright (C) 2020 OpenCFD Ltd.
|
Copyright (C) 2020-2022 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -221,12 +221,8 @@ void Foam::EigenMatrix<cmptType>::symmTridiagonalQL()
|
|||||||
// If m == l, EValsRe_[l] is an eigenvalue, otherwise, iterate
|
// If m == l, EValsRe_[l] is an eigenvalue, otherwise, iterate
|
||||||
if (m > l)
|
if (m > l)
|
||||||
{
|
{
|
||||||
label iter = 0;
|
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
iter += 1;
|
|
||||||
|
|
||||||
// Compute implicit shift
|
// Compute implicit shift
|
||||||
cmptType g = EValsRe_[l];
|
cmptType g = EValsRe_[l];
|
||||||
cmptType p = (EValsRe_[l + 1] - g)/(2.0*EValsIm_[l]);
|
cmptType p = (EValsRe_[l + 1] - g)/(2.0*EValsIm_[l]);
|
||||||
|
|||||||
Reference in New Issue
Block a user