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
Wiki
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
Core Modules
dune-istl
Commits
8797d972
Commit
8797d972
authored
19 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
maxValue should be fieldtype
[[Imported from SVN: r377]]
parent
eee7afa9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
istl/paamg/aggregates.hh
+3
-3
3 additions, 3 deletions
istl/paamg/aggregates.hh
with
3 additions
and
3 deletions
istl/paamg/aggregates.hh
+
3
−
3
View file @
8797d972
...
...
@@ -213,8 +213,8 @@ namespace Dune
/** @brief The matrix we work on. */
const
Matrix
*
matrix_
;
/** @brief The current max value.*/
doubl
e
maxValue_
;
/** @brief The fun
k
tor for calculating the norm. */
typename
Matrix
::
field_typ
e
maxValue_
;
/** @brief The fun
c
tor for calculating the norm. */
Norm
norm_
;
/** @brief index of the currently evaluated row. */
int
row_
;
...
...
@@ -1017,7 +1017,7 @@ namespace Dune
template
<
class
M
,
class
N
>
inline
void
SymmetricDependency
<
M
,
N
>::
initRow
(
const
Row
&
row
,
int
index
)
{
maxValue_
=
-
std
::
numeric_limits
<
double
>::
max
(
);
maxValue_
=
std
::
min
(
-
std
::
numeric_limits
<
typename
Matrix
::
field_type
>::
max
(),
std
::
numeric_limits
<
typename
Matrix
::
field_type
>::
min
()
);
row_
=
index
;
diagonal_
=
norm_
(
matrix_
->
operator
[](
row_
)[
row_
]);
}
...
...
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