Skip to content
Snippets Groups Projects
Commit 07315db3 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

Fixed support for sequential case of matrixmarkettest.cc. Some #ifndef

MM_SEQUENTIAL were not correctly replaced by #if HAVE_MPI.


[[Imported from SVN: r1566]]
parent cc9a77f9
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,6 @@ int main(int argc, char** argv)
MPI_Init(&argc, &argv);
int size;
MPI_Comm_size(MPI_COMM_WORLD, &size);
#else
#endif
const int BS=1;
int N=100;
......@@ -64,7 +63,7 @@ int main(int argc, char** argv)
*sentry=i;
}
#ifndef HAVE_MPI
#if HAVE_MPI
comm.remoteIndices().rebuild<false>();
comm.copyOwnerToAll(bv,bv);
......@@ -85,7 +84,7 @@ int main(int argc, char** argv)
BCRSMat mat1;
BVector bv1,cv1;
#ifndef HAVE_MPI
#if HAVE_MPI
Communication comm1(MPI_COMM_WORLD);
loadMatrixMarket(mat1, std::string("testmat"), comm1);
......@@ -126,7 +125,7 @@ int main(int argc, char** argv)
cv1.resize(mat1.M());
#ifndef HAVE_MPI
#if HAVE_MPI
Dune::OverlappingSchwarzOperator<BCRSMat,BVector,BVector,Communication> op1(mat1, comm1);
op1.apply(bv1, cv1);
......@@ -148,7 +147,7 @@ int main(int argc, char** argv)
++ret;
}
#ifndef HAVE_MPI
#if HAVE_MPI
if(ret!=0)
MPI_Abort(MPI_COMM_WORLD, ret);
MPI_Finalize();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment