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
29dc7042
Commit
29dc7042
authored
19 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Made AttributeSet accessible.
Introduced some typedefs. Fixed some includes. [[Imported from SVN: r463]]
parent
da2bd220
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/owneroverlapcopy.hh
+65
-4
65 additions, 4 deletions
istl/owneroverlapcopy.hh
with
65 additions
and
4 deletions
istl/owneroverlapcopy.hh
+
65
−
4
View file @
29dc7042
...
...
@@ -19,17 +19,20 @@
#endif
#include
"
dune/common/tripel.hh
"
#include
<
dune/common/tripel.hh
>
#include
<dune/common/enumset.hh>
#include
<dune/common/collectivecommunication.hh>
#if HAVE_MPI
#include
"indexset.hh"
#include
"communicator.hh"
#include
"remoteindices.hh"
#include
"istlexcep
tion.hh
"
#include
<dune/common/mpicollectivecommunica
tion.hh
>
#endif
#include
"solvercategory.hh"
#include
"istlexception.hh"
#include
<dune/common/collectivecommunication.hh>
namespace
Dune
{
/**
...
...
@@ -47,7 +50,7 @@ namespace Dune {
/**
* @brief Attribute set for overlapping schwarz.
*/
class
OwnerOverlapCopyAttributeSet
struct
OwnerOverlapCopyAttributeSet
{
enum
AttributeSet
{
owner
=
1
,
overlap
=
2
,
copy
=
0
...
...
@@ -238,6 +241,9 @@ namespace Dune {
}
public
:
enum
{
category
=
SolverCategory
::
overlapping
};
/**
* @brief Communicate values from owner data points to all other data points.
*
...
...
@@ -323,6 +329,49 @@ namespace Dune {
return
sqrt
(
cc
.
sum
(
result
));
}
/** @brief The type of the parallel index set. */
typedef
ParallelIndexSet
<
GlobalIdType
,
LI
,
512
>
ParallelIndexSet
;
/** @brief The type of the remote indices. */
typedef
RemoteIndices
<
PIS
>
RemoteIndices
;
/**
* @brief Get the underlying parallel index set.
* @return The underlying parallel index set.
*/
const
ParallelIndexSet
&
indexSet
()
const
{
return
pis
;
}
/**
* @brief Get the underlying remote indices.
* @return The underlying remote indices.
*/
const
RemoteIndices
&
remoteIndices
()
const
{
return
ri
;
}
/**
* @brief Get the underlying parallel index set.
* @return The underlying parallel index set.
*/
ParallelIndexSet
&
indexSet
()
{
return
pis
;
}
/**
* @brief Get the underlying remote indices.
* @return The underlying remote indices.
*/
RemoteIndices
&
remoteIndices
()
{
return
ri
;
}
/**
* @brief Project a vector to somewhat???
*
...
...
@@ -337,6 +386,18 @@ namespace Dune {
}
/**
* @brief Construct the communication without any indices.
*
* The local index set and the remote indices have to be set up
* later on.
* @param comm_ The MPI Communicator to use, e. g. MPI_COMM_WORLD
*/
OwnerOverlapCopyCommunication
(
MPI_Comm
comm_
)
:
cc
(
comm_
),
pis
(),
ri
(
pis
,
pis
,
comm_
),
OwnerToAllInterfaceBuilt
(
false
),
OwnerOverlapToAllInterfaceBuilt
(
false
)
{}
/**
* @brief Constructor
* @param indexinfo The set of IndexTripels describing the local and remote indices.
...
...
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