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
e8549ed3
Commit
e8549ed3
authored
9 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
[dynamic polymorphism] update schwarz.hh to the new interface
parent
e569bbf1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/istl/schwarz.hh
+24
-20
24 additions, 20 deletions
dune/istl/schwarz.hh
with
24 additions
and
20 deletions
dune/istl/schwarz.hh
+
24
−
20
View file @
e8549ed3
...
...
@@ -98,11 +98,6 @@ namespace Dune {
//! implementing the same interface.
typedef
C
communication_type
;
enum
{
//! \brief The solver category.
category
=
SolverCategory
::
overlapping
};
/**
* @brief constructor: just store a reference to a matrix.
*
...
...
@@ -137,6 +132,12 @@ namespace Dune {
return
_A_
;
}
//! Category of the linear operator (see SolverCategory::Category)
virtual
SolverCategory
::
Category
category
()
const
{
return
SolverCategory
::
overlapping
;
}
private
:
const
matrix_type
&
_A_
;
const
communication_type
&
communication
;
...
...
@@ -177,9 +178,6 @@ namespace Dune {
//! implementing the same interface.
typedef
C
communication_type
;
//! define the category
enum
{
category
=
SolverCategory
::
overlapping
};
/*! \brief Constructor needs to know the grid
* \param com The communication object for syncing overlap and copy
* data points. (E.~g. OwnerOverlapCopyCommunication )
...
...
@@ -207,6 +205,12 @@ namespace Dune {
return
communication
.
norm
(
x
);
}
//! Category of the scalar product (see SolverCategory::Category)
virtual
SolverCategory
::
Category
category
()
const
{
return
SolverCategory
::
overlapping
;
}
private
:
const
communication_type
&
communication
;
};
...
...
@@ -263,12 +267,6 @@ namespace Dune {
//! \brief The type of the communication object.
typedef
C
communication_type
;
// define the category
enum
{
//! \brief The category the precondtioner is part of.
category
=
SolverCategory
::
overlapping
};
/*! \brief Constructor.
constructor gets all parameters to operate the prec.
...
...
@@ -313,6 +311,12 @@ namespace Dune {
*/
virtual
void
post
(
X
&
x
)
{}
//! Category of the preconditioner (see SolverCategory::Category)
virtual
SolverCategory
::
Category
category
()
const
{
return
SolverCategory
::
overlapping
;
}
private
:
//! \brief The matrix we operate on.
const
matrix_type
&
_A_
;
...
...
@@ -374,12 +378,6 @@ namespace Dune {
//! implementing the same interface.
typedef
C
communication_type
;
// define the category
enum
{
//! \brief The category the precondtioner is part of.
category
=
SolverCategory
::
overlapping
};
/*! \brief Constructor.
constructor gets all parameters to operate the prec.
...
...
@@ -430,6 +428,12 @@ namespace Dune {
preconditioner
.
post
(
x
);
}
//! Category of the preconditioner (see SolverCategory::Category)
virtual
SolverCategory
::
Category
category
()
const
{
return
SolverCategory
::
overlapping
;
}
private
:
//! \brief a sequential preconditioner
T
&
preconditioner
;
...
...
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