Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-istl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Patrick Jaap
dune-istl
Commits
8d53d312
Commit
8d53d312
authored
7 years ago
by
Robert K
Browse files
Options
Downloads
Patches
Plain Diff
[cleanup] adjust SeqILU to recent updates for SimdScalar.
parent
d1e67754
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/istl/preconditioners.hh
+8
-4
8 additions, 4 deletions
dune/istl/preconditioners.hh
with
8 additions
and
4 deletions
dune/istl/preconditioners.hh
+
8
−
4
View file @
8d53d312
...
...
@@ -510,9 +510,13 @@ namespace Dune {
typedef
X
domain_type
;
//! \brief The range type of the preconditioner.
typedef
Y
range_type
;
//! \brief The field type of the preconditioner.
typedef
typename
X
::
field_type
field_type
;
//! \brief scalar type underlying the field_type
typedef
SimdScalar
<
field_type
>
scalar_field_type
;
//! \brief type of ILU storage
typedef
typename
ILU
::
CRS
<
block_type
>
CRS
;
...
...
@@ -523,7 +527,7 @@ namespace Dune {
\param w The relaxation factor.
\param resort true if a resort of the computed ILU for improved performance should be done.
*/
SeqILU
(
const
M
&
A
,
field_type
w
,
const
bool
resort
=
false
)
SeqILU
(
const
M
&
A
,
scalar_
field_type
w
,
const
bool
resort
=
false
)
:
SeqILU
(
A
,
0
,
w
,
resort
)
// construct ILU(0)
{
}
...
...
@@ -536,13 +540,13 @@ namespace Dune {
\param w The relaxation factor.
\param resort true if a resort of the computed ILU for improved performance should be done.
*/
SeqILU
(
const
M
&
A
,
int
n
,
field_type
w
,
const
bool
resort
=
false
)
SeqILU
(
const
M
&
A
,
int
n
,
scalar_
field_type
w
,
const
bool
resort
=
false
)
:
ILU_
(),
lower_
(),
upper_
(),
inv_
(),
w_
(
w
),
wNotIdentity_
(
std
::
abs
(
w_
-
field_type
(
1
)
)
>
1e-15
)
wNotIdentity_
(
std
::
abs
(
w_
-
scalar_
field_type
(
1
)
)
>
1e-15
)
{
if
(
n
==
0
)
{
...
...
@@ -626,7 +630,7 @@ namespace Dune {
std
::
vector
<
block_type
>
inv_
;
//! \brief The relaxation factor to use.
const
field_type
w_
;
const
scalar_
field_type
w_
;
//! \brief true if w != 1.0
const
bool
wNotIdentity_
;
};
...
...
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