diff --git a/dune/istl/test/matrixmarkettest.cc b/dune/istl/test/matrixmarkettest.cc
index 65005cc876a3e0de3381330d54b21575f7e4d41e..0f29d46baed5ce03c5e0553fadd53465f3c7d2a4 100644
--- a/dune/istl/test/matrixmarkettest.cc
+++ b/dune/istl/test/matrixmarkettest.cc
@@ -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();