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
03e32701
Commit
03e32701
authored
13 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Stop hiding variables and functions of father class.
[[Imported from SVN: r1472]]
parent
559b5279
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/paamg/aggregates.hh
+5
-93
5 additions, 93 deletions
dune/istl/paamg/aggregates.hh
with
5 additions
and
93 deletions
dune/istl/paamg/aggregates.hh
+
5
−
93
View file @
03e32701
...
...
@@ -77,15 +77,15 @@ namespace Dune
*/
void
setDefaultValuesIsotropic
(
std
::
size_t
dim
,
std
::
size_t
diameter
=
2
)
{
m
axDistance
_
=
diameter
-
1
;
this
->
setM
axDistance
(
diameter
-
1
)
;
std
::
size_t
csize
=
1
;
for
(;
dim
>
0
;
dim
--
)
{
csize
*=
diameter
;
maxDistance
_
+=
diameter
-
1
;
this
->
setMaxDistance
(
this
->
maxDistance
()
+
diameter
-
1
)
;
}
m
inAggregateSize
_
=
csize
;
m
axAggregateSize
_
=
static_cast
<
std
::
size_t
>
(
csize
*
1.5
);
this
->
setM
inAggregateSize
(
csize
)
;
this
->
setM
axAggregateSize
(
static_cast
<
std
::
size_t
>
(
csize
*
1.5
)
)
;
}
/**
...
...
@@ -101,96 +101,8 @@ namespace Dune
void
setDefaultValuesAnisotropic
(
std
::
size_t
dim
,
std
::
size_t
diameter
=
2
)
{
setDefaultValuesIsotropic
(
dim
,
diameter
);
maxDistance
_
+=
dim
-
1
;
this
->
setMaxDistance
(
this
->
maxDistance
()
+
dim
-
1
)
;
}
/**
* @brief Get the maximal distance allowed between to nodes in a aggregate.
*
* The distance between two nodes in a aggregate is the minimal number of edges
* it takes to travel from one node to the other without leaving the aggregate.
* @return The maximum distance allowed.
*/
std
::
size_t
maxDistance
()
const
{
return
maxDistance_
;}
/**
* @brief Set the maximal distance allowed between to nodes in a aggregate.
*
* The distance between two nodes in a aggregate is the minimal number of edges
* it takes to travel from one node to the other without leaving the aggregate.
* The default value is 2.
* @param distance The maximum distance allowed.
*/
void
setMaxDistance
(
std
::
size_t
distance
)
{
maxDistance_
=
distance
;}
/**
* @brief Whether isolated aggregates will not be represented on
* the coarse level.
* @return True if these aggregates will be skipped.
*/
bool
skipIsolated
()
const
{
return
skipiso_
;
}
/**
* @brief Set whether isolated aggregates will not be represented on
* the coarse level.
* @param skip True if these aggregates will be skipped.
*/
void
setSkipIsolated
(
bool
skip
)
{
skipiso_
=
skip
;
}
/**
* @brief Get the minimum number of nodes a aggregate has to consist of.
* @return The minimum number of nodes.
*/
std
::
size_t
minAggregateSize
()
const
{
return
minAggregateSize_
;}
/**
* @brief Set the minimum number of nodes a aggregate has to consist of.
*
* the default value is 4.
* @return The minimum number of nodes.
*/
void
setMinAggregateSize
(
std
::
size_t
size
){
minAggregateSize_
=
size
;}
/**
* @brief Get the maximum number of nodes a aggregate is allowed to have.
* @return The maximum number of nodes.
*/
std
::
size_t
maxAggregateSize
()
const
{
return
maxAggregateSize_
;}
/**
* @brief Set the maximum number of nodes a aggregate is allowed to have.
*
* The default values is 6.
* @param size The maximum number of nodes.
*/
void
setMaxAggregateSize
(
std
::
size_t
size
){
maxAggregateSize_
=
size
;}
/**
* @brief Get the maximum number of connections a aggregate is allowed to have.
*
* This limit exists to achieve sparsity of the coarse matrix. the default value is 15.
*
* @return The maximum number of connections a aggregate is allowed to have.
*/
std
::
size_t
maxConnectivity
()
const
{
return
connectivity_
;}
/**
* @brief Set the maximum number of connections a aggregate is allowed to have.
*
* This limit exists to achieve sparsity of the coarse matrix. the default value is 15.
*
* @param connectivity The maximum number of connections a aggregate is allowed to have.
*/
void
setMaxConnectivity
(
std
::
size_t
connectivity
){
connectivity_
=
connectivity
;}
private
:
std
::
size_t
maxDistance_
,
minAggregateSize_
,
maxAggregateSize_
,
connectivity_
;
bool
skipiso_
;
};
template
<
class
T
>
...
...
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