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
a2209988
Commit
a2209988
authored
19 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Added additional functionality needed by Parallel AMG.
[[Imported from SVN: r467]]
parent
018519d1
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
+37
-5
37 additions, 5 deletions
istl/owneroverlapcopy.hh
with
37 additions
and
5 deletions
istl/owneroverlapcopy.hh
+
37
−
5
View file @
a2209988
...
...
@@ -172,9 +172,11 @@ namespace Dune {
typedef
typename
IndexInfoFromGrid
<
GlobalIdType
,
LocalIdType
>::
RemoteIndexTripel
RemoteIndexTripel
;
typedef
typename
std
::
set
<
IndexTripel
>::
const_iterator
localindex_iterator
;
typedef
typename
std
::
set
<
RemoteIndexTripel
>::
const_iterator
remoteindex_iterator
;
enum
AttributeSet
{
owner
=
OwnerOverlapCopyAttributeSet
::
owner
,
overlap
=
OwnerOverlapCopyAttributeSet
::
overlap
,
copy
=
OwnerOverlapCopyAttributeSet
::
copy
};
typedef
typename
OwnerOverlapCopyAttributeSet
::
AttributeSet
AttributeSet
;
enum
attributes
{
owner
=
OwnerOverlapCopyAttributeSet
::
owner
,
overlap
=
OwnerOverlapCopyAttributeSet
::
overlap
,
copy
=
OwnerOverlapCopyAttributeSet
::
copy
};
typedef
ParallelLocalIndex
<
AttributeSet
>
LI
;
typedef
ParallelIndexSet
<
GlobalIdType
,
LI
,
512
>
PIS
;
typedef
RemoteIndices
<
PIS
>
RI
;
...
...
@@ -244,6 +246,12 @@ namespace Dune {
enum
{
category
=
SolverCategory
::
overlapping
};
const
CollectiveCommunication
<
MPI_Comm
>&
communicator
()
const
{
return
cc
;
}
/**
* @brief Communicate values from owner data points to all other data points.
*
...
...
@@ -335,6 +343,10 @@ namespace Dune {
/** @brief The type of the remote indices. */
typedef
RemoteIndices
<
PIS
>
RemoteIndices
;
/**
* @brief The type of the reverse lookup of indices. */
typedef
GlobalLookupIndexSet
<
ParallelIndexSet
>
GlobalLookupIndexSet
;
/**
* @brief Get the underlying parallel index set.
* @return The underlying parallel index set.
...
...
@@ -372,6 +384,23 @@ namespace Dune {
return
ri
;
}
void
buildGlobalLookup
(
std
::
size_t
size
)
{
globalLookup_
=
new
GlobalLookupIndexSet
(
pis
,
size
);
}
void
freeGlobalLookup
()
{
delete
globalLookup_
;
globalLookup_
=
0
;
}
const
GlobalLookupIndexSet
&
globalLookup
()
const
{
assert
(
globalLookup_
!=
0
);
return
*
globalLookup_
;
}
/**
* @brief Project a vector to somewhat???
*
...
...
@@ -395,7 +424,7 @@ namespace Dune {
*/
OwnerOverlapCopyCommunication
(
MPI_Comm
comm_
)
:
cc
(
comm_
),
pis
(),
ri
(
pis
,
pis
,
comm_
),
OwnerToAllInterfaceBuilt
(
false
),
OwnerOverlapToAllInterfaceBuilt
(
false
)
OwnerToAllInterfaceBuilt
(
false
),
OwnerOverlapToAllInterfaceBuilt
(
false
)
,
globalLookup_
(
0
)
{}
/**
...
...
@@ -404,7 +433,7 @@ namespace Dune {
* @param comm_ The communicator to use in the communication.
*/
OwnerOverlapCopyCommunication
(
const
IndexInfoFromGrid
<
GlobalIdType
,
LocalIdType
>&
indexinfo
,
MPI_Comm
comm_
)
:
cc
(
comm_
),
OwnerToAllInterfaceBuilt
(
false
),
OwnerOverlapToAllInterfaceBuilt
(
false
)
:
cc
(
comm_
),
OwnerToAllInterfaceBuilt
(
false
),
OwnerOverlapToAllInterfaceBuilt
(
false
)
,
globalLookup_
(
0
)
{
// set up an ISTL index set
pis
.
beginResize
();
...
...
@@ -466,6 +495,8 @@ namespace Dune {
}
private
:
OwnerOverlapCopyCommunication
(
const
OwnerOverlapCopyCommunication
&
)
{}
CollectiveCommunication
<
MPI_Comm
>
cc
;
PIS
pis
;
RI
ri
;
...
...
@@ -474,6 +505,7 @@ namespace Dune {
mutable
IF
OwnerOverlapToAllInterface
;
mutable
bool
OwnerOverlapToAllInterfaceBuilt
;
mutable
std
::
vector
<
double
>
mask
;
GlobalLookupIndexSet
*
globalLookup_
;
};
#endif
...
...
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