Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
8c02820d
Commit
8c02820d
authored
2 years ago
by
Kutalmış Berçin
Browse files
Options
Downloads
Patches
Plain Diff
COMP: EigenMatrix: remove unused iter variable
parent
9d212dfd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
applications/test/matrices/EigenMatrix/Test-EigenMatrix.C
+1
-15
1 addition, 15 deletions
applications/test/matrices/EigenMatrix/Test-EigenMatrix.C
src/OpenFOAM/matrices/EigenMatrix/EigenMatrix.C
+1
-5
1 addition, 5 deletions
src/OpenFOAM/matrices/EigenMatrix/EigenMatrix.C
with
2 additions
and
20 deletions
applications/test/matrices/EigenMatrix/Test-EigenMatrix.C
+
1
−
15
View file @
8c02820d
...
...
@@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2020 OpenCFD Ltd.
Copyright (C) 2020
-2022
OpenCFD Ltd.
-------------------------------------------------------------------------------
License
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
template
<
class
Type
>
void
test_constructors
(
Type
)
...
...
This diff is collapsed.
Click to expand it.
src/OpenFOAM/matrices/EigenMatrix/EigenMatrix.C
+
1
−
5
View file @
8c02820d
...
...
@@ -9,7 +9,7 @@
Contributed 2018-07-31 to the OpenFOAM Foundation
Copyright (C) 2018 OpenFOAM Foundation
Copyright (C) 2019-2020 Alberto Passalacqua
Copyright (C) 2020 OpenCFD Ltd.
Copyright (C) 2020
-2022
OpenCFD Ltd.
-------------------------------------------------------------------------------
License
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
)
{
label
iter
=
0
;
do
{
iter
+=
1
;
// Compute implicit shift
cmptType
g
=
EValsRe_
[
l
];
cmptType
p
=
(
EValsRe_
[
l
+
1
]
-
g
)
/
(
2
.
0
*
EValsIm_
[
l
]);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment