Commit 6f8a7433 authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

Add test for multilevel interior boundaries and dof communicators.

parent 08a7ce8f
...@@ -44,7 +44,12 @@ namespace AMDiS { ...@@ -44,7 +44,12 @@ namespace AMDiS {
void DofComm::create(InteriorBoundary &boundary) void DofComm::create(InteriorBoundary &boundary)
{ {
FUNCNAME("DofComm::create()");
MSG("---> senddofs\n");
createContainer(boundary.getOwn(), sendDofs); createContainer(boundary.getOwn(), sendDofs);
MSG("---> recvdofs\n");
createContainer(boundary.getOther(), recvDofs); createContainer(boundary.getOther(), recvDofs);
} }
......
...@@ -72,7 +72,6 @@ namespace AMDiS { ...@@ -72,7 +72,6 @@ namespace AMDiS {
continue; continue;
int owner = elObjDb.getIterateOwner(level); int owner = elObjDb.getIterateOwner(level);
MSG("OWNER IN LEVEL %d IS %d\n",level, owner);
ElementObjectData& rankBoundEl = objData[globalMpiRank]; ElementObjectData& rankBoundEl = objData[globalMpiRank];
AtomicBoundary bound; AtomicBoundary bound;
......
...@@ -1535,12 +1535,11 @@ namespace AMDiS { ...@@ -1535,12 +1535,11 @@ namespace AMDiS {
dofComm.init(0, levelData, feSpaces); dofComm.init(0, levelData, feSpaces);
dofComm.create(intBoundary); dofComm.create(intBoundary);
#if 0
if (levelData.getLevelNumber() > 1) { if (levelData.getLevelNumber() > 1) {
dofCommSd.init(1, levelData, feSpaces); MSG("START CREATE DOF-COMM-SD\n");
dofCommSd.create(intBoundary); dofCommSd.init(0, levelData, feSpaces);
dofCommSd.create(intBoundarySd);
} }
#endif
// === If requested, create more information on communication DOFs. === // === If requested, create more information on communication DOFs. ===
......
...@@ -162,11 +162,21 @@ namespace AMDiS { ...@@ -162,11 +162,21 @@ namespace AMDiS {
return dofComm; return dofComm;
} }
DofComm& getDofCommSd()
{
return dofCommSd;
}
InteriorBoundary& getIntBoundary() InteriorBoundary& getIntBoundary()
{ {
return intBoundary; return intBoundary;
} }
InteriorBoundary& getIntBoundarySd()
{
return intBoundarySd;
}
inline long getLastMeshChangeIndex() inline long getLastMeshChangeIndex()
{ {
return lastMeshChangeIndex; return lastMeshChangeIndex;
......
# rank_id n_own_dofs n_other_dofs
0 0 5
1 2 3
2 0 5
3 2 3
4 2 3
5 5 0
6 2 3
7 5 0
8 0 5
9 2 3
10 0 5
11 2 3
12 2 3
13 5 0
14 2 3
15 5 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment