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
eb439587
Commit
eb439587
authored
1 year ago
by
Lisa Julia Nebel
Committed by
Lisa Julia Nebel
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Add flag useFixedOrder to the CoarseningParameters
parent
eae83ec6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!553
Add flag useFixedOrder to the coarsen method of AMGs ParallelIndicesCoarsener.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/istl/paamg/matrixhierarchy.hh
+7
-3
7 additions, 3 deletions
dune/istl/paamg/matrixhierarchy.hh
dune/istl/paamg/parameters.hh
+28
-4
28 additions, 4 deletions
dune/istl/paamg/parameters.hh
with
35 additions
and
7 deletions
dune/istl/paamg/matrixhierarchy.hh
+
7
−
3
View file @
eb439587
...
...
@@ -297,10 +297,13 @@ namespace Dune
* coarsening will stop (default: 1.2)
* @param prolongDamp The damping factor to apply to the prolongated update (default: 1.6)
* @param accumulate Whether to accumulate the data onto fewer processors on coarser levels.
* @param useFixedOrder Flag indicating if creating indices for the coarser level
* should be done in a fixed order, i.e., the order in which the rows were sent.
* If set to true, this makes the runs reproducible but it might slow down performance.
*/
CoarsenCriterion
(
int
maxLevel
=
100
,
int
coarsenTarget
=
1000
,
double
minCoarsenRate
=
1.2
,
double
prolongDamp
=
1.6
,
AccumulationMode
accumulate
=
successiveAccu
)
:
AggregationCriterion
(
Dune
::
Amg
::
Parameters
(
maxLevel
,
coarsenTarget
,
minCoarsenRate
,
prolongDamp
,
accumulate
))
double
prolongDamp
=
1.6
,
AccumulationMode
accumulate
=
successiveAccu
,
bool
useFixedOrder
=
false
)
:
AggregationCriterion
(
Dune
::
Amg
::
Parameters
(
maxLevel
,
coarsenTarget
,
minCoarsenRate
,
prolongDamp
,
accumulate
,
useFixedOrder
))
{}
CoarsenCriterion
(
const
Dune
::
Amg
::
Parameters
&
parms
)
...
...
@@ -610,7 +613,8 @@ namespace Dune
visitedMap
,
*
aggregatesMap
,
*
infoLevel
,
noAggregates
);
noAggregates
,
criterion
.
useFixedOrder
());
GraphCreator
::
free
(
graphs
);
if
(
criterion
.
debugLevel
()
>
2
)
{
...
...
This diff is collapsed.
Click to expand it.
dune/istl/paamg/parameters.hh
+
28
−
4
View file @
eb439587
...
...
@@ -324,6 +324,20 @@ namespace Dune
void
setAccumulate
(
bool
accu
){
accumulate_
=
accu
?
successiveAccu
:
noAccu
;
}
/**
* @brief Check if the indices for the coarser levels should be created in a fixed order.
*/
bool
useFixedOrder
()
const
{
return
useFixedOrder_
;
}
void
setUseFixedOrder
(
bool
useFixedOrder
)
{
useFixedOrder_
=
useFixedOrder
;
}
/**
* @brief Set the damping factor for the prolongation.
*
...
...
@@ -352,11 +366,15 @@ namespace Dune
* coarsening will stop (default: 1.2)
* @param prolongDamp The damping factor to apply to the prolongated update (default: 1.6)
* @param accumulate Whether to accumulate the data onto fewer processors on coarser levels.
* @param useFixedOrder Flag indicating if creating indices for the coarser level
* should be done in a fixed order, i.e., the order in which the rows were sent.
* If set to true, this makes the runs reproducible but it might slow down performance.
*/
CoarseningParameters
(
int
maxLevel
=
100
,
int
coarsenTarget
=
1000
,
double
minCoarsenRate
=
1.2
,
double
prolongDamp
=
1.6
,
AccumulationMode
accumulate
=
successiveAccu
)
double
prolongDamp
=
1.6
,
AccumulationMode
accumulate
=
successiveAccu
,
bool
useFixedOrder
=
false
)
:
maxLevel_
(
maxLevel
),
coarsenTarget_
(
coarsenTarget
),
minCoarsenRate_
(
minCoarsenRate
),
dampingFactor_
(
prolongDamp
),
accumulate_
(
accumulate
)
dampingFactor_
(
prolongDamp
),
accumulate_
(
accumulate
)
,
useFixedOrder_
(
useFixedOrder
)
{}
private
:
...
...
@@ -381,6 +399,12 @@ namespace Dune
* coarser levels.
*/
AccumulationMode
accumulate_
;
/**
* @brief useFixedOrder Flag indicating if creating indices for the coarser
* level should be done in a fixed order. If set to true, this makes the runs reproducible
* but it might slow down performance.
*/
bool
useFixedOrder_
;
};
/**
...
...
@@ -491,8 +515,8 @@ namespace Dune
* @param accumulate Whether to accumulate the data onto fewer processors on coarser levels.
*/
Parameters
(
int
maxLevel
=
100
,
int
coarsenTarget
=
1000
,
double
minCoarsenRate
=
1.2
,
double
prolongDamp
=
1.6
,
AccumulationMode
accumulate
=
successiveAccu
)
:
CoarseningParameters
(
maxLevel
,
coarsenTarget
,
minCoarsenRate
,
prolongDamp
,
accumulate
)
double
prolongDamp
=
1.6
,
AccumulationMode
accumulate
=
successiveAccu
,
bool
useFixedOrder
=
false
)
:
CoarseningParameters
(
maxLevel
,
coarsenTarget
,
minCoarsenRate
,
prolongDamp
,
accumulate
,
useFixedOrder
)
,
debugLevel_
(
2
),
preSmoothSteps_
(
2
),
postSmoothSteps_
(
2
),
gamma_
(
1
),
additive_
(
false
)
{}
...
...
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