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
2dd068b9
Commit
2dd068b9
authored
5 years ago
by
Simon Praetorius
Browse files
Options
Downloads
Patches
Plain Diff
make apply<forward> work with BlockPreconditioner and NonoverlappingBlockPreconditioner
parent
85fce383
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!302
Make apply<forward> work with BlockPreconditioner and NonoverlappingBlockPreconditioner
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/istl/novlpschwarz.hh
+10
-3
10 additions, 3 deletions
dune/istl/novlpschwarz.hh
dune/istl/schwarz.hh
+5
-5
5 additions, 5 deletions
dune/istl/schwarz.hh
with
15 additions
and
8 deletions
dune/istl/novlpschwarz.hh
+
10
−
3
View file @
2dd068b9
...
...
@@ -289,7 +289,7 @@ namespace Dune {
\param c The communication object for syncing overlap and copy
data points. (E.~g. OwnerOverlapCopyCommunication )
*/
NonoverlappingBlockPreconditioner
(
P
reconditioner
<
X
,
Y
>
&
p
,
const
communication_type
&
c
)
NonoverlappingBlockPreconditioner
(
P
&
p
,
const
communication_type
&
c
)
:
_preconditioner
(
stackobject_to_shared_ptr
(
p
)),
_communication
(
c
)
{
}
...
...
@@ -300,7 +300,7 @@ namespace Dune {
\param c The communication object for syncing overlap and copy
data points. (E.~g. OwnerOverlapCopyCommunication )
*/
NonoverlappingBlockPreconditioner
(
const
std
::
shared_ptr
<
P
reconditioner
<
X
,
Y
>
>&
p
,
const
communication_type
&
c
)
NonoverlappingBlockPreconditioner
(
const
std
::
shared_ptr
<
P
>&
p
,
const
communication_type
&
c
)
:
_preconditioner
(
p
),
_communication
(
c
)
{
}
...
...
@@ -328,6 +328,13 @@ namespace Dune {
_communication
.
addOwnerCopyToOwnerCopy
(
v
,
v
);
}
template
<
bool
forward
>
void
apply
(
X
&
v
,
const
Y
&
d
)
{
_preconditioner
->
template
apply
<
forward
>(
v
,
d
);
_communication
.
copyOwnerToAll
(
v
,
v
);
}
/*!
\brief Clean up.
...
...
@@ -346,7 +353,7 @@ namespace Dune {
private
:
//! \brief a sequential preconditioner
std
::
shared_ptr
<
P
reconditioner
<
X
,
Y
>
>
_preconditioner
;
std
::
shared_ptr
<
P
>
_preconditioner
;
//! \brief the communication object
const
communication_type
&
_communication
;
...
...
This diff is collapsed.
Click to expand it.
dune/istl/schwarz.hh
+
5
−
5
View file @
2dd068b9
...
...
@@ -265,9 +265,9 @@ namespace Dune {
* for approximately solving the local matrix block consisting of unknowns
* owned by the process. Has to implement the Preconditioner interface.
*/
template
<
class
X
,
class
Y
,
class
C
,
class
T
=
Preconditioner
<
X
,
Y
>
>
template
<
class
X
,
class
Y
,
class
C
,
class
P
=
Preconditioner
<
X
,
Y
>
>
class
BlockPreconditioner
:
public
Preconditioner
<
X
,
Y
>
{
friend
struct
Amg
::
ConstructionTraits
<
BlockPreconditioner
<
X
,
Y
,
C
,
T
>
>
;
friend
struct
Amg
::
ConstructionTraits
<
BlockPreconditioner
<
X
,
Y
,
C
,
P
>
>
;
public:
//! \brief The domain type of the preconditioner.
//!
...
...
@@ -294,7 +294,7 @@ namespace Dune {
\param c The communication object for syncing overlap and copy
data points. (E.~g. OwnerOverlapCopyCommunication )
*/
BlockPreconditioner
(
P
reconditioner
<
X
,
Y
>
&
p
,
const
communication_type
&
c
)
BlockPreconditioner
(
P
&
p
,
const
communication_type
&
c
)
:
_preconditioner
(
stackobject_to_shared_ptr
(
p
)),
_communication
(
c
)
{
}
...
...
@@ -305,7 +305,7 @@ namespace Dune {
\param c The communication object for syncing overlap and copy
data points. (E.~g. OwnerOverlapCopyCommunication )
*/
BlockPreconditioner
(
const
std
::
shared_ptr
<
P
reconditioner
<
X
,
Y
>
>&
p
,
const
communication_type
&
c
)
BlockPreconditioner
(
const
std
::
shared_ptr
<
P
>&
p
,
const
communication_type
&
c
)
:
_preconditioner
(
p
),
_communication
(
c
)
{
}
...
...
@@ -356,7 +356,7 @@ namespace Dune {
private
:
//! \brief a sequential preconditioner
std
::
shared_ptr
<
P
reconditioner
<
X
,
Y
>
>
_preconditioner
;
std
::
shared_ptr
<
P
>
_preconditioner
;
//! \brief the communication object
const
communication_type
&
_communication
;
...
...
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