Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
iwr
amdis
Commits
797e54bc
Commit
797e54bc
authored
12 years ago
by
Thomas Witkowski
Browse files
Options
Downloads
Patches
Plain Diff
Fixed Lagrange computation problem for multilevle FETI-DP.
parent
dbdff287
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
AMDiS/src/parallel/PetscSolverFeti.cc
+67
-7
67 additions, 7 deletions
AMDiS/src/parallel/PetscSolverFeti.cc
with
67 additions
and
7 deletions
AMDiS/src/parallel/PetscSolverFeti.cc
+
67
−
7
View file @
797e54bc
...
...
@@ -447,7 +447,12 @@ namespace AMDiS {
for
(
DofContainer
::
iterator
it
=
allBoundaryDofs
.
begin
();
it
!=
allBoundaryDofs
.
end
();
++
it
)
if
(
!
isPrimal
(
feSpace
,
**
it
))
dualDofMap
[
feSpace
].
insertRankDof
(
**
it
);
if
(
meshLevel
==
0
)
{
dualDofMap
[
feSpace
].
insertRankDof
(
**
it
);
}
else
{
if
(
meshDistributor
->
getDofMapSd
()[
feSpace
].
isRankDof
(
**
it
))
dualDofMap
[
feSpace
].
insertRankDof
(
**
it
);
}
}
...
...
@@ -463,14 +468,69 @@ namespace AMDiS {
// === Create for each dual node that is owned by the rank, the set ===
// === of ranks that contain this node (denoted by W(x_j)). ===
for
(
DofComm
::
Iterator
it
(
meshDistributor
->
getDofComm
().
getSendDofs
(),
meshLevel
,
feSpace
);
!
it
.
end
();
it
.
nextRank
())
for
(;
!
it
.
endDofIter
();
it
.
nextDof
())
{
if
(
!
isPrimal
(
feSpace
,
it
.
getDofIndex
()))
{
boundaryDofRanks
[
feSpace
][
it
.
getDofIndex
()].
insert
(
mpiRank
);
boundaryDofRanks
[
feSpace
][
it
.
getDofIndex
()].
insert
(
it
.
getRank
());
if
(
meshLevel
==
0
)
{
for
(
DofComm
::
Iterator
it
(
meshDistributor
->
getDofComm
().
getSendDofs
(),
feSpace
);
!
it
.
end
();
it
.
nextRank
())
{
for
(;
!
it
.
endDofIter
();
it
.
nextDof
())
{
if
(
!
isPrimal
(
feSpace
,
it
.
getDofIndex
()))
{
boundaryDofRanks
[
feSpace
][
it
.
getDofIndex
()].
insert
(
mpiRank
);
boundaryDofRanks
[
feSpace
][
it
.
getDofIndex
()].
insert
(
it
.
getRank
());
}
}
}
}
else
{
StdMpi
<
vector
<
int
>
>
stdMpi
(
mpiComm
);
for
(
DofComm
::
Iterator
it
(
meshDistributor
->
getDofComm
().
getRecvDofs
(),
meshLevel
,
feSpace
);
!
it
.
end
();
it
.
nextRank
())
{
vector
<
int
>
subdomainRankDofs
;
subdomainRankDofs
.
reserve
(
it
.
getDofs
().
size
());
for
(;
!
it
.
endDofIter
();
it
.
nextDof
())
{
if
(
meshDistributor
->
getDofMapSd
()[
feSpace
].
isRankDof
(
it
.
getDofIndex
()))
{
MSG
(
"IN SD DOF
\n
"
);
subdomainRankDofs
.
push_back
(
1
);
}
else
{
MSG
(
"NOT IN SD DOF
\n
"
);
subdomainRankDofs
.
push_back
(
0
);
}
}
MSG
(
"SEND SIZE %d TO RANK %d
\n
"
,
subdomainRankDofs
.
size
(),
it
.
getRank
());
stdMpi
.
send
(
it
.
getRank
(),
subdomainRankDofs
);
}
for
(
DofComm
::
Iterator
it
(
meshDistributor
->
getDofComm
().
getSendDofs
(),
meshLevel
,
feSpace
);
!
it
.
end
();
it
.
nextRank
())
stdMpi
.
recv
(
it
.
getRank
());
stdMpi
.
startCommunication
();
for
(
DofComm
::
Iterator
it
(
meshDistributor
->
getDofComm
().
getSendDofs
(),
meshLevel
,
feSpace
);
!
it
.
end
();
it
.
nextRank
())
{
for
(;
!
it
.
endDofIter
();
it
.
nextDof
())
{
if
(
!
isPrimal
(
feSpace
,
it
.
getDofIndex
()))
{
boundaryDofRanks
[
feSpace
][
it
.
getDofIndex
()].
insert
(
mpiRank
);
if
(
it
.
getDofCounter
()
>=
stdMpi
.
getRecvData
(
it
.
getRank
()).
size
())
MSG
(
"VERY BIG SHIT: %d from %d
\n
"
,
stdMpi
.
getRecvData
(
it
.
getRank
()).
size
(),
it
.
getRank
());
if
(
stdMpi
.
getRecvData
(
it
.
getRank
())[
it
.
getDofCounter
()])
boundaryDofRanks
[
feSpace
][
it
.
getDofIndex
()].
insert
(
it
.
getRank
());
}
}
}
}
for
(
DofIndexToPartitions
::
iterator
it
=
boundaryDofRanks
[
feSpace
].
begin
();
it
!=
boundaryDofRanks
[
feSpace
].
end
();
++
it
)
MSG
(
"DOF %d IS DUAL IN %d RANKS
\n
"
,
it
->
first
,
it
->
second
.
size
());
// === Communicate these sets for all rank owned dual nodes to other ===
...
...
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