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

Fixed compilation issues.

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