Commit 18b97ade authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

Fixed compilation issues.

parent e3c34b47
...@@ -68,11 +68,11 @@ namespace AMDiS { ...@@ -68,11 +68,11 @@ namespace AMDiS {
int nLevel = 2; int nLevel = 2;
int nSubdomains[nLevel]; int nSubdomains[nLevel];
nSubdomains[0] = meshDistributor->getMpiSize(); nSubdomains[0] = meshDistributor->getMpiComm(0).Get_size();
nSubdomains[1] = 1; nSubdomains[1] = 1;
int nSubPerProc = 1; int nSubPerProc = 1;
MPI_Fint c2f = MPI_Comm_c2f(meshDistributor->getMpiComm()); MPI_Fint c2f = MPI_Comm_c2f(meshDistributor->getMpiComm(0));
int verboseLevel = 2; int verboseLevel = 2;
int numbase = 0; int numbase = 0;
...@@ -164,7 +164,7 @@ namespace AMDiS { ...@@ -164,7 +164,7 @@ namespace AMDiS {
// array of indices of subdomain elements in global numbering // array of indices of subdomain elements in global numbering
int isegn[nelems]; int isegn[nelems];
int rStartEl, nOverallEl; int rStartEl, nOverallEl;
mpi::getDofNumbering(meshDistributor->getMpiComm(), mpi::getDofNumbering(meshDistributor->getMpiComm(0),
nelems, rStartEl, nOverallEl); nelems, rStartEl, nOverallEl);
MSG("rStartEl = %d\n", rStartEl); MSG("rStartEl = %d\n", rStartEl);
for (int i = 0; i < nelems; i++) for (int i = 0; i < nelems; i++)
......
...@@ -116,19 +116,17 @@ namespace AMDiS { ...@@ -116,19 +116,17 @@ namespace AMDiS {
{ {
FUNCNAME("DofComm::getDegree()"); FUNCNAME("DofComm::getDegree()");
TEST_EXIT_DBG(meshLevel == 0)("Not yet implemented!\n");
int degree = 0; int degree = 0;
for (map<int, FeMapType>::iterator it = sendDofs[0].begin(); for (map<int, FeMapType>::iterator it = sendDofs.begin();
it != sendDofs[0].end(); ++it) { it != sendDofs.end(); ++it) {
DofContainer &dc = it->second[feSpace]; DofContainer &dc = it->second[feSpace];
if (find(dc.begin(), dc.end(), dof) != dc.end()) if (find(dc.begin(), dc.end(), dof) != dc.end())
degree++; degree++;
} }
for (map<int, FeMapType>::iterator it = recvDofs[0].begin(); for (map<int, FeMapType>::iterator it = recvDofs.begin();
it != recvDofs[0].end(); ++it) { it != recvDofs.end(); ++it) {
DofContainer &dc = it->second[feSpace]; DofContainer &dc = it->second[feSpace];
if (find(dc.begin(), dc.end(), dof) != dc.end()) if (find(dc.begin(), dc.end(), dof) != dc.end())
degree++; degree++;
......
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